From dc3b758c34398d9eeee3f9be91a3c24e3b7f0e92 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Fri, 14 Jun 2013 12:14:53 -0400 Subject: [PATCH] Fix: memleaks in channel/event notify Signed-off-by: David Goulet --- src/bin/lttng-sessiond/ust-app.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.34.1