projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace free() with mh_free0()
[mmh]
/
sbr
/
seq_setunseen.c
diff --git
a/sbr/seq_setunseen.c
b/sbr/seq_setunseen.c
index
e628393
..
73bd83d
100644
(file)
--- a/
sbr/seq_setunseen.c
+++ b/
sbr/seq_setunseen.c
@@
-8,6
+8,7
@@
*/
#include <h/mh.h>
*/
#include <h/mh.h>
+#include <h/utils.h> /* mh_free0() */
/*
** We scan through the folder and act upon all messages
/*
** We scan through the folder and act upon all messages
@@
-34,7
+35,7
@@
seq_setunseen(struct msgs *mp, int doadd)
}
if (!(ap = brkstring(dp, " ", "\n")) || !*ap) {
/* contains no sequence name, i.e. we're finished */
}
if (!(ap = brkstring(dp, " ", "\n")) || !*ap) {
/* contains no sequence name, i.e. we're finished */
- free(dp);
+ mh_free0(&dp);
return;
}
return;
}
@@
-61,5
+62,5
@@
seq_setunseen(struct msgs *mp, int doadd)
}
}
}
}
- free(dp);
+ mh_free0(&dp);
}
}