tests: fix memory leaks.
* tests/pubkey.c (check_keys_crypt): Release L, X0, and X1. (check_keys): Release X.