android: Free settings string passed via JNI
This commit is contained in:
@@ -712,5 +712,7 @@ JNI_METHOD(CharonVpnService, initiate, void,
|
||||
|
||||
config = androidjni_convert_jstring(env, jconfig);
|
||||
settings = settings_create_string(config);
|
||||
free(config);
|
||||
|
||||
initiate(settings);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user