Fix: Undefined behavior of double free on strlist in get_names_args
authorChristian Babeux <christian.babeux@efficios.com>
Fri, 1 Mar 2013 02:26:32 +0000 (21:26 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 1 Mar 2013 02:26:32 +0000 (21:26 -0500)
Signed-off-by: Christian Babeux <christian.babeux@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
converter/babeltrace.c

index 20ded00495e9e7262a32677088231ab512c04482..ed19fa85a5b0fd59baa958be6f5eb3a8ef45d096 100644 (file)
@@ -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;
                }
This page took 0.024165 seconds and 4 git commands to generate.