leak-detective: Fix compile warning due to unused variable if LD is disabled
authorTobias Brunner <tobias@strongswan.org>
Tue, 20 Sep 2016 15:24:52 +0000 (17:24 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 20 Sep 2016 15:24:52 +0000 (17:24 +0200)
src/libstrongswan/library.c

index f694509..4f79dcc 100644 (file)
@@ -175,13 +175,13 @@ void library_deinit()
                this->public.integrity->destroy(this->public.integrity);
        }
 
-#ifdef LEAK_DETECTIVE
        if (lib->leak_detective)
        {
                lib->leak_detective->report(lib->leak_detective, detailed);
                lib->leak_detective->destroy(lib->leak_detective);
                lib->leak_detective = NULL;
        }
+#ifdef LEAK_DETECTIVE
        if (this->ld_out && this->ld_out != stderr)
        {
                fclose(this->ld_out);