Tests: fd-tracker: fix: leak of test paths
[lttng-tools.git] / src / common / fd-tracker / fd-tracker.c
index 188abfb6d2792f4f3f2eb9d899e6fb62d784f522..033ae40f8516f6389e1d0b46db1ad01b8bc6ea20 100644 (file)
@@ -457,6 +457,9 @@ int fd_tracker_destroy(struct fd_tracker *tracker)
 {
        int ret = 0;
 
+       if (!tracker) {
+               goto end;
+       }
        /*
         * Refuse to destroy the tracker as fs_handles may still old
         * weak references to the tracker.
This page took 0.0298 seconds and 4 git commands to generate.