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) {
|
if (waitpid(gunzip_pid, NULL, 0) == -1) {
|
||||||
printf("Couldnt wait ?");
|
printf("Couldnt wait ?");
|
||||||
}
|
}
|
||||||
free(window);
|
if (window) {
|
||||||
free(crc_table);
|
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) {
|
if (waitpid(gunzip_pid, NULL, 0) == -1) {
|
||||||
printf("Couldnt wait ?");
|
printf("Couldnt wait ?");
|
||||||
}
|
}
|
||||||
free(window);
|
if (window) {
|
||||||
free(crc_table);
|
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) {
|
if (waitpid(gunzip_pid, NULL, 0) == -1) {
|
||||||
printf("Couldnt wait ?");
|
printf("Couldnt wait ?");
|
||||||
}
|
}
|
||||||
free(window);
|
if (window) {
|
||||||
free(crc_table);
|
free(window);
|
||||||
|
}
|
||||||
|
if (crc_table) {
|
||||||
|
free(crc_table);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user