tree-wide: use mfree more

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2016-10-16 23:35:39 -04:00
parent d7604756ca
commit 6b430fdb7c
64 changed files with 105 additions and 228 deletions
+2 -4
View File
@@ -610,8 +610,7 @@ char *strreplace(const char *text, const char *old_string, const char *new_strin
return r;
oom:
free(r);
return NULL;
return mfree(r);
}
char *strip_tab_ansi(char **ibuf, size_t *_isz) {
@@ -682,8 +681,7 @@ char *strip_tab_ansi(char **ibuf, size_t *_isz) {
if (ferror(f)) {
fclose(f);
free(obuf);
return NULL;
return mfree(obuf);
}
fclose(f);