use my usual API's for allocation/deallocation right now.
[apps/madmutt.git] / pgpkey.c
index 62d050e..a14ec77 100644 (file)
--- a/pgpkey.c
+++ b/pgpkey.c
@@ -861,7 +861,7 @@ pgp_key_t pgp_getkeybyaddr (address_t * a, short abilities, pgp_ring_t keyring)
           this_key_has_weak = 1;
       }
 
-      rfc822_free_address (&r);
+      address_delete (&r);
     }
 
     if (match && !this_key_has_strong && this_key_has_invalid)