Fix: memleaks in channel/event notify
authorDavid Goulet <dgoulet@efficios.com>
Fri, 14 Jun 2013 16:14:53 +0000 (12:14 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Fri, 14 Jun 2013 16:14:53 +0000 (12:14 -0400)
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/ust-app.c

index 12ea705bbe0e4f631cef81a45f2ceaae6af8a2d7..7e7c89a481d5fab4019b470ca45b4bcb7c3c4c5d 100644 (file)
@@ -4689,6 +4689,9 @@ int ust_app_recv_notify(int sock)
                ret = add_event_ust_registry(sock, sobjd, cobjd, name, sig, nr_fields,
                                fields, loglevel, model_emf_uri);
                if (ret < 0) {
+                       free(sig);
+                       free(model_emf_uri);
+                       free(fields);
                        goto error;
                }
 
@@ -4716,6 +4719,7 @@ int ust_app_recv_notify(int sock)
                ret = reply_ust_register_channel(sock, sobjd, cobjd, nr_fields,
                                fields);
                if (ret < 0) {
+                       free(fields);
                        goto error;
                }
 
This page took 0.043144 seconds and 4 git commands to generate.