Fix memory leaks in gpg module.