[PATCH 2/2] totemconfig: Prevent leak of cluster_name str

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

 



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

diff --git a/exec/totemconfig.c b/exec/totemconfig.c
index 65a061b..62daeaf 100644
--- a/exec/totemconfig.c
+++ b/exec/totemconfig.c
@@ -536,6 +536,8 @@ extern int totem_config_read (
 		ringnumber = atoi(ringnumber_key);
 
 		if (ringnumber >= INTERFACE_MAX) {
+			free(cluster_name);
+
 			snprintf (error_string_response, sizeof(error_string_response),
 			    "parse error in config: interface ring number %u is bigger then allowed maximum %u\n",
 			    ringnumber, INTERFACE_MAX - 1);
-- 
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