[lttng-dev] [PATCH babeltrace] Fix: Undefined behavior of double free on strlist in get_names_args

Christian Babeux christian.babeux at efficios.com
Thu Feb 28 18:13:26 EST 2013


Signed-off-by: Christian Babeux <christian.babeux at efficios.com>
---
 converter/babeltrace.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/converter/babeltrace.c b/converter/babeltrace.c
index 20ded00..ed19fa8 100644
--- a/converter/babeltrace.c
+++ b/converter/babeltrace.c
@@ -204,7 +204,6 @@ static int get_names_args(poptContext *pc)
 			opt_payload_field_names = 0;
 		} else {
 			fprintf(stderr, "[error] unknown field name type %s\n", str);
-			free(strlist);
 			ret = -EINVAL;
 			goto end;
 		}
-- 
1.8.1.3




More information about the lttng-dev mailing list