projects
/
lttng-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95b1d17
)
Fix: memory leak in error path in JUL list
author
David Goulet
<dgoulet@efficios.com>
Wed, 16 Oct 2013 19:42:52 +0000
(15:42 -0400)
committer
David Goulet
<dgoulet@efficios.com>
Wed, 16 Oct 2013 19:42:52 +0000
(15:42 -0400)
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/jul.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/lttng-sessiond/jul.c
b/src/bin/lttng-sessiond/jul.c
index 4f2250dff62588baf9828edd4205de896ae8e0b2..318d511651e3147061a715703bda1631d16d2f48 100644
(file)
--- a/
src/bin/lttng-sessiond/jul.c
+++ b/
src/bin/lttng-sessiond/jul.c
@@
-414,7
+414,7
@@
int jul_list_events(struct lttng_event **events)
int ret;
size_t nbmem, count = 0;
struct jul_app *app;
- struct lttng_event *tmp_events;
+ struct lttng_event *tmp_events
= NULL
;
struct lttng_ht_iter iter;
assert(events);
@@
-466,8
+466,10
@@
int jul_list_events(struct lttng_event **events)
ret = count;
*events = tmp_events;
+ return ret;
error:
+ free(tmp_events);
return ret;
}
This page took
0.026251 seconds
and
4
git commands to generate.