free coniditionally, just to make it play nice with dmalloc which is incompatable with standard free()
This commit is contained in:
parent
c59fa37d40
commit
93febe672a
@ -1024,6 +1024,10 @@ extern void gz_close(int gunzip_pid)
|
||||
if (waitpid(gunzip_pid, NULL, 0) == -1) {
|
||||
printf("Couldnt wait ?");
|
||||
}
|
||||
free(window);
|
||||
free(crc_table);
|
||||
if (window) {
|
||||
free(window);
|
||||
}
|
||||
if (crc_table) {
|
||||
free(crc_table);
|
||||
}
|
||||
}
|
||||
|
@ -1024,6 +1024,10 @@ extern void gz_close(int gunzip_pid)
|
||||
if (waitpid(gunzip_pid, NULL, 0) == -1) {
|
||||
printf("Couldnt wait ?");
|
||||
}
|
||||
free(window);
|
||||
free(crc_table);
|
||||
if (window) {
|
||||
free(window);
|
||||
}
|
||||
if (crc_table) {
|
||||
free(crc_table);
|
||||
}
|
||||
}
|
||||
|
@ -1024,6 +1024,10 @@ extern void gz_close(int gunzip_pid)
|
||||
if (waitpid(gunzip_pid, NULL, 0) == -1) {
|
||||
printf("Couldnt wait ?");
|
||||
}
|
||||
free(window);
|
||||
free(crc_table);
|
||||
if (window) {
|
||||
free(window);
|
||||
}
|
||||
if (crc_table) {
|
||||
free(crc_table);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user