[PATCH 2/8] totem: Properly free inbuf when NSS fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Jan Friesse <jfriesse@xxxxxxxxxx>
---
 exec/totemudp.c  |    1 +
 exec/totemudpu.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/exec/totemudp.c b/exec/totemudp.c
index cc8fdb4..23e8820 100644
--- a/exec/totemudp.c
+++ b/exec/totemudp.c
@@ -497,6 +497,7 @@ static int encrypt_and_sign_nss (
 		log_printf(instance->totemudp_log_level_security,
 			"Failure to generate a random number %d\n",
 			PR_GetError());
+		free(inbuf);
 		goto out;
 	}
 
diff --git a/exec/totemudpu.c b/exec/totemudpu.c
index d19b682..3888ab8 100644
--- a/exec/totemudpu.c
+++ b/exec/totemudpu.c
@@ -476,6 +476,7 @@ static int encrypt_and_sign_nss (
 		log_printf(instance->totemudpu_log_level_security,
 			"Failure to generate a random number %d\n",
 			PR_GetError());
+		free (inbuf);
 		goto out;
 	}
 
-- 
1.7.1

_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss




[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux