Fix: add "has_build_id" and "has_debug_link" fields to debuginfo events
[lttng-ust.git] / liblttng-ust-dl / lttng-ust-dl.c
index d6abeff0820e024d1a6512213df5c8ec6a5e539f..e4cb42068ed1548ab10eaa4a1b850b2a19d45eb8 100644 (file)
@@ -104,18 +104,17 @@ void lttng_ust_dl_dlopen(void *so_base, const char *so_name, void *ip)
        }
 
        tracepoint(lttng_ust_dl, dlopen,
-               ip, so_base, resolved_path, memsz);
+               ip, so_base, resolved_path, memsz,
+               has_build_id, has_debug_link);
 
        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 +145,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;
 
This page took 0.023422 seconds and 4 git commands to generate.