tests: Fix cleaning up at the end of the test
* tests/gpg/t-import.c (main): Unref key and release context. -- This fixes leaks found with -fsanitize=address.
This commit is contained in:
parent
41dc3bd22a
commit
21283dfd1b
@ -269,6 +269,8 @@ main (int argc, char *argv[])
|
||||
exit (1);
|
||||
}
|
||||
|
||||
gpgme_key_unref (key);
|
||||
gpgme_release (ctx);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user