android: Free settings string passed via JNI
authorTobias Brunner <tobias@strongswan.org>
Fri, 10 Nov 2017 17:14:26 +0000 (18:14 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 17 Nov 2017 13:31:06 +0000 (14:31 +0100)
src/frontends/android/app/src/main/jni/libandroidbridge/charonservice.c

index 6242733..2891eab 100644 (file)
@@ -712,5 +712,7 @@ JNI_METHOD(CharonVpnService, initiate, void,
 
        config = androidjni_convert_jstring(env, jconfig);
        settings = settings_create_string(config);
+       free(config);
+
        initiate(settings);
 }