Replace free() with mh_free0()
[mmh] / sbr / seq_setprev.c
index c66c132..aecbea6 100644 (file)
@@ -7,6 +7,7 @@
 */
 
 #include <h/mh.h>
+#include <h/utils.h>
 
 /*
 ** Add all the messages currently SELECTED to
@@ -28,7 +29,7 @@ seq_setprev(struct msgs *mp)
        if ((cp = context_find(psequence))) {
                dp = getcpy(cp);
                if (!(ap = brkstring(dp, " ", "\n")) || !*ap) {
-                       free(dp);
+                       mh_free0(&dp);
                        return;
                }
        } else {
@@ -39,5 +40,5 @@ seq_setprev(struct msgs *mp)
        for (; *ap; ap++)
                seq_addsel(mp, *ap, -1, 1);
 
-       free(dp);
+       mh_free0(&dp);
 }