projects
/
deliverable
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: memory leak in load session thread
[deliverable/lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
load-session-thread.c
diff --git
a/src/bin/lttng-sessiond/load-session-thread.c
b/src/bin/lttng-sessiond/load-session-thread.c
index 38fa1f616104175c2f31fd56807764a3a36b3b37..868d7c55279b25e2455f626408cdf9118ffbdfd4 100644
(file)
--- a/
src/bin/lttng-sessiond/load-session-thread.c
+++ b/
src/bin/lttng-sessiond/load-session-thread.c
@@
-51,7
+51,7
@@
void load_session_destroy_data(struct load_session_thread_data *data)
int load_session_init_data(struct load_session_thread_data **data)
{
int ret;
- struct load_session_thread_data *_data;
+ struct load_session_thread_data *_data
= NULL
;
assert(data);
@@
-75,6
+75,7
@@
int load_session_init_data(struct load_session_thread_data **data)
return 0;
error:
+ free(_data);
return -1;
}
This page took
0.024201 seconds
and
5
git commands to generate.