projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: ustctl: leak of event notifier data on communication error
[lttng-ust.git]
/
liblttng-ust-ctl
/
ustctl.c
diff --git
a/liblttng-ust-ctl/ustctl.c
b/liblttng-ust-ctl/ustctl.c
index 2a7c7d8a39ca0d3beadecdbab820fd90666b6999..d1e7eb4ef6143b4c9f3478ee2252a6f4d0c312b4 100644
(file)
--- a/
liblttng-ust-ctl/ustctl.c
+++ b/
liblttng-ust-ctl/ustctl.c
@@
-590,6
+590,7
@@
int ustctl_create_event_notifier(int sock, struct lttng_ust_abi_event_notifier *
/* Send struct lttng_ust_event_notifier */
len = ustcomm_send_unix_sock(sock, event_notifier, sizeof(*event_notifier));
if (len != sizeof(*event_notifier)) {
+ free(event_notifier_data);
if (len < 0)
return len;
else
This page took
0.023287 seconds
and
4
git commands to generate.