Fix: do not overwrite ret if already set and session found
[lttng-tools.git] / src / common / config / session-config.c
index 9df815bff4129ea8e799d25f65f0891b63c45b81..503f49fad8ce441586e4473c01ca6bd9de488c0e 100644 (file)
@@ -2842,7 +2842,7 @@ end:
                }
        }
 
-       if (session_found) {
+       if (session_found && !ret) {
                ret = 0;
        }
 
@@ -3012,3 +3012,9 @@ end:
        }
        return ret;
 }
+
+static
+void __attribute__((destructor)) session_config_exit(void)
+{
+       xmlCleanupParser();
+}
This page took 0.023877 seconds and 4 git commands to generate.