X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=liblttng-ust%2Flttng-ust-elf.c;h=ce58539e67880e853224a862c6aaed3ca6094b7a;hb=83215d66bbc361b174835895a3f6166e7c2fcd86;hp=026d65cec362ce757994d2d500a295d6839ba44b;hpb=5a26ac5496892ae6faa6192074264b2f9adcd589;p=lttng-ust.git diff --git a/liblttng-ust/lttng-ust-elf.c b/liblttng-ust/lttng-ust-elf.c index 026d65ce..ce58539e 100644 --- a/liblttng-ust/lttng-ust-elf.c +++ b/liblttng-ust/lttng-ust-elf.c @@ -478,6 +478,7 @@ int lttng_ust_elf_get_build_id_from_segment( *found = _found; return 0; error: + free(_build_id); return -1; } @@ -624,10 +625,8 @@ end: return 0; error: - if (section_name) { - free(section_name); - } - + free(_filename); + free(section_name); return -1; }