Explorar el Código

Remove use after free in corosync_main_config_set in error path

Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
Steven Dake hace 14 años
padre
commit
46a2b1a297
Se han modificado 1 ficheros con 0 adiciones y 1 borrados
  1. 0 1
      exec/mainconfig.c

+ 0 - 1
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);