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:
parent
270887309f
commit
04f994d5db
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user