Message ID | 20180112180930.345950960@goodmis.org (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show |
Series | trace-cmd: A few fixes | expand |
diff --git a/trace-listen.c b/trace-listen.c index 38de59263800..871df0e7a04c 100644 --- a/trace-listen.c +++ b/trace-listen.c @@ -587,9 +587,11 @@ static int *create_all_readers(const char *node, const char *port, write(msg_handle->fd, "\0", 1); } + free(port_array); return pid_array; out_free: + free(port_array); destroy_all_readers(cpus, pid_array, node, port); return NULL; }