gpg: Fix actual leak and possible leaks in the packet parser.