X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=liblttng-ust-dl%2Flttng-ust-dl.c;h=ac3c951fc85cd9ee80f096fd033d9852630bc31f;hb=e7953e6e102fdc71419cb2a7169468af46f568c4;hp=d6abeff0820e024d1a6512213df5c8ec6a5e539f;hpb=83215d66bbc361b174835895a3f6166e7c2fcd86;p=lttng-ust.git diff --git a/liblttng-ust-dl/lttng-ust-dl.c b/liblttng-ust-dl/lttng-ust-dl.c index d6abeff0..ac3c951f 100644 --- a/liblttng-ust-dl/lttng-ust-dl.c +++ b/liblttng-ust-dl/lttng-ust-dl.c @@ -109,13 +109,11 @@ void lttng_ust_dl_dlopen(void *so_base, const char *so_name, void *ip) if (has_build_id) { tracepoint(lttng_ust_dl, build_id, ip, so_base, build_id, build_id_len); - free(build_id); } if (has_debug_link) { tracepoint(lttng_ust_dl, debug_link, ip, so_base, dbg_file, crc); - free(dbg_file); } end: @@ -146,7 +144,7 @@ void *dlopen(const char *filename, int flag) int dlclose(void *handle) { - if (__tracepoint_ptrs_registered && handle) { + if (__tracepoint_ptrs_registered) { struct link_map *p = NULL; int ret;