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