[PATCH] Remove use after free in corosync_main_config_set in error path

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

 



Signed-off-by: Steven Dake <sdake@xxxxxxxxxx>
---
 exec/mainconfig.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/exec/mainconfig.c b/exec/mainconfig.c
index b5dc5dd..d25dbd0 100644
--- a/exec/mainconfig.c
+++ b/exec/mainconfig.c
@@ -222,7 +222,6 @@ static int corosync_main_config_format_set (
 	return (0);
 
 parse_error:
-	free(value);
 	*error_string = error_reason;
 
 	return (-1);
-- 
1.7.7.6

_______________________________________________
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