tests: Fix memory leak.
authorJustus Winter <justus@g10code.com>
Wed, 10 Aug 2016 08:37:31 +0000 (10:37 +0200)
committerJustus Winter <justus@g10code.com>
Wed, 10 Aug 2016 08:37:31 +0000 (10:37 +0200)
* tests/gpg/t-encrypt-mixed.c (main): Free 'text2'.

Signed-off-by: Justus Winter <justus@g10code.com>
tests/gpg/t-encrypt-mixed.c

index 28d8aa3..6ad976a 100644 (file)
@@ -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;