X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fcommon%2Frunas.c;h=9e3b5ec3395d823d301b5ee1b8bed7f83f20bfe6;hb=9a642a3f53dfc3deab8196945d0b3762f4641200;hp=f753d2454de44c6b43815aa289c652e0d62f88c2;hpb=d8e434b20f45853565d57ae75ae90ef1627e83b4;p=lttng-tools.git diff --git a/src/common/runas.c b/src/common/runas.c index f753d2454..9e3b5ec33 100644 --- a/src/common/runas.c +++ b/src/common/runas.c @@ -656,6 +656,7 @@ int run_as_create_worker(char *procname) 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 {