]> git.marmaro.de Git - mmh/blobdiff - uip/new.c
Replace free() with mh_free0()
[mmh] / uip / new.c
index 9774729ae5af15086712aadfb0a5389a1f6a6517..25ee492b5d3113ef099c72623e4bee00f86d9b4d 100644 (file)
--- a/uip/new.c
+++ b/uip/new.c
@@ -68,7 +68,7 @@ count_messages(char *field)
                }
        }
 
                }
        }
 
-       free(field);
+       mh_free0(&field);
 
        return total;
 }
 
        return total;
 }
@@ -134,11 +134,11 @@ get_msgnums(char *folder, char *sequences[])
                                        } else {
                                                old_msgnums = msgnums;
                                                msgnums = concat(old_msgnums, " ", this_msgnums, (void *)NULL);
                                        } else {
                                                old_msgnums = msgnums;
                                                msgnums = concat(old_msgnums, " ", this_msgnums, (void *)NULL);
-                                               free(old_msgnums);
-                                               free(this_msgnums);
+                                               mh_free0(&old_msgnums);
+                                               mh_free0(&this_msgnums);
                                        }
                                }
                                        }
                                }
-                               free(cp);
+                               mh_free0(&cp);
                        } else {
                                /* and here */
                                if (seq_in_list(name, sequences)) {
                        } else {
                                /* and here */
                                if (seq_in_list(name, sequences)) {
@@ -148,8 +148,8 @@ get_msgnums(char *folder, char *sequences[])
                                        } else {
                                                old_msgnums = msgnums;
                                                msgnums = concat(old_msgnums, " ", this_msgnums, (void *)NULL);
                                        } else {
                                                old_msgnums = msgnums;
                                                msgnums = concat(old_msgnums, " ", this_msgnums, (void *)NULL);
-                                               free(old_msgnums);
-                                               free(this_msgnums);
+                                               mh_free0(&old_msgnums);
+                                               mh_free0(&this_msgnums);
                                        }
                                }
                        }
                                        }
                                }
                        }