gpgscm: Fix memory leaks.
authorJustus Winter <justus@g10code.com>
Tue, 28 Jun 2016 16:13:40 +0000 (18:13 +0200)
committerJustus Winter <justus@g10code.com>
Tue, 28 Jun 2016 16:21:50 +0000 (18:21 +0200)
commit9c67958c4737b34c60ef2076f57234eec155eb36
tree680c742fe65d69877446beb06139bf79e613468d
parent6cb2be91a7cc8a9b8ec42f3956adbb19347318e3
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 <justus@g10code.com>
tests/gpgscm/ffi-private.h
tests/gpgscm/ffi.c
tests/gpgscm/main.c