X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=liblttng-ust%2Flttng-ust-elf.c;h=4de380cf67d4edd803905e051ebde987bd90e683;hb=2657d1baecb6b33ead9c9caa7c8ec5bf423d1fde;hp=ce58539e67880e853224a862c6aaed3ca6094b7a;hpb=83215d66bbc361b174835895a3f6166e7c2fcd86;p=lttng-ust.git diff --git a/liblttng-ust/lttng-ust-elf.c b/liblttng-ust/lttng-ust-elf.c index ce58539e..4de380cf 100644 --- a/liblttng-ust/lttng-ust-elf.c +++ b/liblttng-ust/lttng-ust-elf.c @@ -545,6 +545,7 @@ int lttng_ust_elf_get_build_id(struct lttng_ust_elf *elf, uint8_t **build_id, *found = _found; return 0; error: + free(_build_id); return -1; } @@ -681,5 +682,6 @@ int lttng_ust_elf_get_debug_link(struct lttng_ust_elf *elf, char **filename, *found = _found; return 0; error: + free(_filename); return -1; }