Skip to content

Commit

Permalink
Fix use of FREE macro for proper memory tracking when debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
madler committed Apr 11, 2019
1 parent 26354b6 commit 524cbed
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pigz.c
Expand Up @@ -1026,7 +1026,7 @@ local unsigned put(int out, ...) {

// write wrap[] to out and return the number of bytes written
writen(out, wrap, count);
free(wrap);
FREE(wrap);
return count;
}

Expand Down Expand Up @@ -2949,8 +2949,7 @@ local int more_zip_entries(void) {
need -= g.in_left;
g.in_left = 0;
if (load() == 0) { // premature EOF
free(g.hcomm);
g.hcomm = NULL;
RELEASE(g.hcomm);
return ret;
}
}
Expand Down

0 comments on commit 524cbed

Please sign in to comment.