Fix: memory leak on connection reset
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 15 May 2013 05:23:40 +0000 (07:23 +0200)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 15 May 2013 05:23:40 +0000 (07:23 +0200)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust/lttng-ust-comm.c

index 86af682b110024c5b1c6f73bb4b34d4ccc29d648..4d437fc58ac14d651825fe71788a1674a4126db1 100644 (file)
@@ -443,6 +443,7 @@ int handle_message(struct sock_info *sock_info,
                                        goto error;
                                }
                                ret = len;
+                               free(bytecode);
                                goto end;
                        } else {
                                DBG("incorrect filter data message size: %zd", len);
This page took 0.025833 seconds and 4 git commands to generate.