projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: worker structure is leaked in run_as process
[lttng-tools.git]
/
src
/
common
/
runas.c
diff --git
a/src/common/runas.c
b/src/common/runas.c
index 562d4e348f2fcb81e088a1d25e913211879ed64a..1f2a836308e5006565c7eea73a436da2d558e57f 100644
(file)
--- a/
src/common/runas.c
+++ b/
src/common/runas.c
@@
-661,6
+661,7
@@
int run_as_create_worker(char *procname)
ret = -1;
}
worker->sockpair[1] = -1;
ret = -1;
}
worker->sockpair[1] = -1;
+ free(worker);
LOG(ret ? PRINT_ERR : PRINT_DBG, "run_as worker exiting (ret = %d)", ret);
exit(ret ? EXIT_FAILURE : EXIT_SUCCESS);
} else {
LOG(ret ? PRINT_ERR : PRINT_DBG, "run_as worker exiting (ret = %d)", ret);
exit(ret ? EXIT_FAILURE : EXIT_SUCCESS);
} else {
This page took
0.023089 seconds
and
4
git commands to generate.