charon-tkm: Deinitialize tkm before libstrongswan
authorTobias Brunner <tobias@strongswan.org>
Tue, 13 Sep 2016 14:24:30 +0000 (16:24 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 20 Sep 2016 14:26:05 +0000 (16:26 +0200)
In particular because of leak-detective.

src/charon-tkm/src/charon-tkm.c

index 13352e5..41b364f 100644 (file)
@@ -382,7 +382,7 @@ int main(int argc, char *argv[])
 deinit:
        destroy_dh_mapping();
        libcharon_deinit();
-       library_deinit();
        tkm_deinit();
+       library_deinit();
        return status;
 }