From: David Goulet Date: Fri, 14 Jun 2013 16:14:53 +0000 (-0400) Subject: Fix: memleaks in channel/event notify X-Git-Tag: v2.2.0-rc3~24 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=dc3b758c34398d9eeee3f9be91a3c24e3b7f0e92 Fix: memleaks in channel/event notify Signed-off-by: David Goulet --- diff --git a/src/bin/lttng-sessiond/ust-app.c b/src/bin/lttng-sessiond/ust-app.c index 12ea705bb..7e7c89a48 100644 --- a/src/bin/lttng-sessiond/ust-app.c +++ b/src/bin/lttng-sessiond/ust-app.c @@ -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; }