diff options
author | Justus Winter <[email protected]> | 2016-06-27 15:56:18 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2016-06-27 16:14:02 +0000 |
commit | 62d10c2a38160ef539a784b96960a6b5e3d8d6b6 (patch) | |
tree | 87a157d07966241b0f5c84817749ad111a22fde0 /tests/gpg/t-thread1.c | |
parent | Cpp: Expose new data_identify values (diff) | |
download | gpgme-62d10c2a38160ef539a784b96960a6b5e3d8d6b6.tar.gz gpgme-62d10c2a38160ef539a784b96960a6b5e3d8d6b6.zip |
tests: Fix trivial memory leaks.
--
Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | tests/gpg/t-thread1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/gpg/t-thread1.c b/tests/gpg/t-thread1.c index 86ea51af..0d4b2deb 100644 --- a/tests/gpg/t-thread1.c +++ b/tests/gpg/t-thread1.c @@ -94,7 +94,7 @@ void * thread_two (void *name) { int i; - const char *cipher_1_asc = make_filename ("cipher-1.asc"); + char *cipher_1_asc = make_filename ("cipher-1.asc"); char *agent_info; agent_info = getenv("GPG_AGENT_INFO"); @@ -135,6 +135,7 @@ thread_two (void *name) gpgme_data_release (out); gpgme_release (ctx); } + free (cipher_1_asc); return NULL; } |