]> the.earth.li Git - onak.git/commitdiff
Relax asserts when cleaning up.
authorJonathan McDowell <noodles@earth.li>
Tue, 7 Sep 2004 09:40:55 +0000 (09:40 +0000)
committerJonathan McDowell <noodles@earth.li>
Tue, 7 Sep 2004 09:40:55 +0000 (09:40 +0000)
Remove some of the assertions in mem.c; we're checking they're true
anyway and we can sometimes hit them legitimately.

mem.c

diff --git a/mem.c b/mem.c
index 5ba9090b08cd52b507b9cb77ca02865004481071..00507ab8424cc321ac58e3f59e163d2390c2d99a 100644 (file)
--- a/mem.c
+++ b/mem.c
@@ -100,8 +100,6 @@ void free_packet(struct openpgp_packet *packet) {
 void free_packet_list(struct openpgp_packet_list *packet_list) {
        struct openpgp_packet_list *nextpacket = NULL;
 
-       log_assert(packet_list != NULL);
-
        while (packet_list != NULL) {
                nextpacket = packet_list->next;
                if (packet_list->packet != NULL) {
@@ -123,8 +121,6 @@ void free_signedpacket_list(
                struct openpgp_signedpacket_list *signedpacket_list) {
        struct openpgp_signedpacket_list *nextpacket = NULL;
 
-       log_assert(signedpacket_list != NULL);
-
        while (signedpacket_list != NULL) {
                nextpacket = signedpacket_list->next;
                if (signedpacket_list->packet != NULL) {
@@ -148,8 +144,6 @@ void free_signedpacket_list(
 void free_publickey(struct openpgp_publickey *key) {
        struct openpgp_publickey *nextkey = NULL;
 
-       log_assert(key != NULL);
-
        while (key != NULL) {
                nextkey = key->next;
                if (key->publickey != NULL) {