tests: Fix memory leak.

* tests/gpg/t-encrypt-mixed.c (main): Free 'text2'.

Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
Justus Winter 2016-08-10 10:37:31 +02:00
parent 270887309f
commit 04f994d5db

View File

@ -120,6 +120,7 @@ main (int argc, char *argv[])
} }
gpgme_key_unref (key[0]); gpgme_key_unref (key[0]);
free (text2);
gpgme_data_release (out); gpgme_data_release (out);
gpgme_release (ctx); gpgme_release (ctx);
return 0; return 0;