Fix: "fields" leak on register
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 15 May 2013 05:28:01 +0000 (07:28 +0200)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 15 May 2013 05:28:01 +0000 (07:28 +0200)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust-comm/lttng-ust-comm.c

index b0e4484abdccfba9078c94d84a46ab744559ca7f..a31786ac52000994feec90a754b5f9ba9701c16c 100644 (file)
@@ -956,6 +956,8 @@ int ustcomm_register_event(int sock,
                if (len < 0) {
                        return len;
                }
+       } else {
+               free(fields);
        }
 
        if (model_emf_uri_len) {
This page took 0.025841 seconds and 4 git commands to generate.