aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gpgscm/main.c
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-06-28 16:13:40 +0000
committerJustus Winter <[email protected]>2016-06-28 16:21:50 +0000
commit9c67958c4737b34c60ef2076f57234eec155eb36 (patch)
tree680c742fe65d69877446beb06139bf79e613468d /tests/gpgscm/main.c
parentgpgscm: Free file names. (diff)
downloadgnupg-9c67958c4737b34c60ef2076f57234eec155eb36.tar.gz
gnupg-9c67958c4737b34c60ef2076f57234eec155eb36.zip
gpgscm: Fix memory leaks.
* tests/gpgscm/ffi-private.h (ffi_schemify_name): Fix prototype. (ffi_define_function_name): Free schemified name. (ffi_define_function): Likewise. (ffi_define_constant): Likewise. (ffi_define_variable_pointer): Likewise. * tests/gpgscm/ffi.c (do_wait_processes): Free arrays. (ffi_schemify_name): Fix type. * tests/gpgscm/main.c (main): Free 'sc'. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'tests/gpgscm/main.c')
-rw-r--r--tests/gpgscm/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/gpgscm/main.c b/tests/gpgscm/main.c
index 3414e3d96..adb4e33e7 100644
--- a/tests/gpgscm/main.c
+++ b/tests/gpgscm/main.c
@@ -282,5 +282,6 @@ main (int argc, char **argv)
}
scheme_deinit (sc);
+ xfree (sc);
return EXIT_SUCCESS;
}