mirror of
https://github.com/korenkonder/ReDIVA.git
synced 2026-10-04 04:37:55 +03:00
Fixed memory leak in gzip compression
This commit is contained in:
@@ -62,6 +62,9 @@ namespace deflate {
|
||||
memcpy((void*)(t + 0x0A), file_name, file_name_length + 1);
|
||||
memcpy((void*)(t + 0x0A + file_name_length + 1), (void*)(d + 0x0A), *dst_length - 0x0A);
|
||||
((uint8_t*)t)[0x03] |= 0x08;
|
||||
free(*dst);
|
||||
*dst = temp;
|
||||
*dst_length += file_name_length + 1;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user