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
/
mhlistsbr.c
diff --git
a/uip/mhlistsbr.c
b/uip/mhlistsbr.c
index
2a4f504
..
46b0d4c
100644
(file)
--- a/
uip/mhlistsbr.c
+++ b/
uip/mhlistsbr.c
@@
-176,9
+176,9
@@
list_content(CT ct, int toplevel, int verbose, int debug)
char *dp;
dp = trimcpy(cp = getcpy(ct->c_descr));
char *dp;
dp = trimcpy(cp = getcpy(ct->c_descr));
- free(cp);
+ mh_free0(&cp);
printf(LSTFMT2d1, dp);
printf(LSTFMT2d1, dp);
- free(dp);
+ mh_free0(&dp);
}
printf("\n");
}
printf("\n");
@@
-201,7
+201,7
@@
list_content(CT ct, int toplevel, int verbose, int debug)
dp = trimcpy(cp = add(ci->ci_comment, NULL));
free (cp);
snprintf(buffer, sizeof(buffer), "(%s)", dp);
dp = trimcpy(cp = add(ci->ci_comment, NULL));
free (cp);
snprintf(buffer, sizeof(buffer), "(%s)", dp);
- free(dp);
+ mh_free0(&dp);
printf(LSTFMT2d2, buffer);
}
}
printf(LSTFMT2d2, buffer);
}
}