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]
/
uip
/
rmf.c
diff --git
a/uip/rmf.c
b/uip/rmf.c
index
230360b
..
64ee68c
100644
(file)
--- a/
uip/rmf.c
+++ b/
uip/rmf.c
@@
-7,6
+7,7
@@
*/
#include <h/mh.h>
*/
#include <h/mh.h>
+#include <h/utils.h>
#include <unistd.h>
#include <dirent.h>
#include <locale.h>
#include <unistd.h>
#include <dirent.h>
#include <locale.h>
@@
-110,7
+111,7
@@
main(int argc, char **argv)
cp = concat("Remove folder \"", folder, "\"? ", NULL);
if (!getanswer(cp))
exit(EX_OK);
cp = concat("Remove folder \"", folder, "\"? ", NULL);
if (!getanswer(cp))
exit(EX_OK);
- free(cp);
+ mh_free0(&cp);
}
if (rmf(folder) == OK) {
}
if (rmf(folder) == OK) {
@@
-248,5
+249,5
@@
rma(char *folder)
pp = np;
}
}
pp = np;
}
}
- free(cp);
+ mh_free0(&cp);
}
}