X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhmisc.c;h=eb29e833616e29a89f74958da6e59e893dcbd8d1;hp=0c8e644abfc2d6025f440c5fafa1d4723aab5868;hb=1fb6287fc4986668e8f49d7c3bdca27d53e267af;hpb=d3ba09a465cb0e5fc9a74d0b152a7ed965f895cb diff --git a/uip/mhmisc.c b/uip/mhmisc.c index 0c8e644..eb29e83 100644 --- a/uip/mhmisc.c +++ b/uip/mhmisc.c @@ -11,6 +11,8 @@ #include #include #include +#include +#include extern int debugsw; @@ -119,7 +121,7 @@ losing_directory: ep = concat("Create directory \"", file, "\"? ", NULL); answer = getanswer(ep); - free(ep); + mh_free0(&ep); if (!answer) goto losing_directory; @@ -235,7 +237,6 @@ flush_errors(void) if (errs) { fflush(stdout); fprintf(stderr, "%s", errs); - free(errs); - errs = NULL; + mh_free0(&errs); } }