Fix: save: leak of configuration file fd
[lttng-tools.git] / src / bin / lttng-sessiond / save.c
index 77b75e363ac81da55c2b9be7a55bd2dbbd261417..c3db2882ad589316ac15760d89ecd5439ae71352 100644 (file)
@@ -1967,6 +1967,13 @@ end:
                }
        }
 
+       if (file_opened) {
+               ret = close(fd);
+               if (ret) {
+                       PERROR("Closing XML session configuration");
+               }
+       }
+
        return ret;
 }
 
This page took 0.024193 seconds and 4 git commands to generate.