From 7999995273ebe7b1c1fcb2602f0161bee81fbd09 Mon Sep 17 00:00:00 2001 From: Angus Salkeld Date: Wed, 19 May 2010 04:35:25 +0000 Subject: [PATCH] cov 10412: fix mem leak in encrypt_and_sign_nss() git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2854 fd59a12c-fef9-0310-b244-a6a79926bd2f --- exec/totemudp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/exec/totemudp.c b/exec/totemudp.c index de0b4eb2..47fb8dbf 100644 --- a/exec/totemudp.c +++ b/exec/totemudp.c @@ -518,6 +518,7 @@ static int encrypt_and_sign_nss ( "PK11_CreateContext failed (encrypt) crypt_type=%d (err %d): %s\n", instance->totem_config->crypto_crypt_type, PR_GetError(), err); + free(inbuf); return -1; } rv1 = PK11_CipherOp(enc_context, outdata,