Fix: memory leak for events without fields
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 15 May 2013 05:26:36 +0000 (07:26 +0200)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 15 May 2013 05:26:36 +0000 (07:26 +0200)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust-comm/lttng-ust-comm.c

index 5321922d5278f84d544a2005fa955e2d5ad42aa9..b0e4484abdccfba9078c94d84a46ab744559ca7f 100644 (file)
@@ -1062,6 +1062,8 @@ int ustcomm_register_channel(int sock,
                if (len < 0) {
                        return len;
                }
+       } else {
+               free(fields);
        }
 
        len = ustcomm_recv_unix_sock(sock, &reply, sizeof(reply));
This page took 0.025472 seconds and 4 git commands to generate.