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
/
context_read.c
diff --git
a/sbr/context_read.c
b/sbr/context_read.c
index
5b7c777
..
4475ca0
100644
(file)
--- a/
sbr/context_read.c
+++ b/
sbr/context_read.c
@@
-25,6
+25,7
@@
*/
#include <h/mh.h> /* mh internals */
*/
#include <h/mh.h> /* mh internals */
+#include <h/utils.h> /* mh_free0() */
#include <errno.h> /* system call errors */
#include <pwd.h> /* structure for getpwuid() results */
#include <unistd.h>
#include <errno.h> /* system call errors */
#include <pwd.h> /* structure for getpwuid() results */
#include <unistd.h>
@@
-126,7
+127,7
@@
context_read(void)
if (!getanswer(cp)) {
adios(EX_NOPERM, NULL, "Unable to access the mail storage directory `%s'", nd);
}
if (!getanswer(cp)) {
adios(EX_NOPERM, NULL, "Unable to access the mail storage directory `%s'", nd);
}
- free(cp);
+ mh_free0(&cp);
if (!makedir(nd)) {
adios(EX_CANTCREAT, nd, "unable to create");
}
if (!makedir(nd)) {
adios(EX_CANTCREAT, nd, "unable to create");
}