From 04f994d5db6db0575dc73c2356c7d51424e2d9fe Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Wed, 10 Aug 2016 10:37:31 +0200 Subject: [PATCH] tests: Fix memory leak. * tests/gpg/t-encrypt-mixed.c (main): Free 'text2'. Signed-off-by: Justus Winter --- tests/gpg/t-encrypt-mixed.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/gpg/t-encrypt-mixed.c b/tests/gpg/t-encrypt-mixed.c index 28d8aa31..6ad976aa 100644 --- a/tests/gpg/t-encrypt-mixed.c +++ b/tests/gpg/t-encrypt-mixed.c @@ -120,6 +120,7 @@ main (int argc, char *argv[]) } gpgme_key_unref (key[0]); + free (text2); gpgme_data_release (out); gpgme_release (ctx); return 0;