]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r19325: leak fix from lha
authorAndrew Tridgell <tridge@samba.org>
Mon, 16 Oct 2006 10:51:23 +0000 (10:51 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:21:09 +0000 (14:21 -0500)
(This used to be commit 248f3265e6339f279691be5d17ca4ce733c6590d)

source4/heimdal/lib/des/hmac.c

index 1d323b37254f139b7737353536a93b2c6bda1c06..4bcb0defa582dc7db97f5c7c637ba3aa3d0ca428 100644 (file)
@@ -28,7 +28,10 @@ HMAC_CTX_cleanup(HMAC_CTX *ctx)
        free(ctx->ipad);
        ctx->ipad = NULL;
     }
-    EVP_MD_CTX_cleanup(ctx->ctx);
+    if (ctx->ctx) {
+           EVP_MD_CTX_destroy(ctx->ctx);
+           ctx->ctx = NULL;
+    }
 }
 
 size_t