]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Fix a possibility of memory leaks when realloc fails.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Tue, 18 Sep 2012 11:14:18 +0000 (20:14 +0900)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Tue, 18 Sep 2012 11:14:18 +0000 (20:14 +0900)
commit0ddb050474551e3a4888fa865879a6ed2c39893b
tree439cc7d706551384ef57a74ed23e1bdf04fba038
parent52ca91f512995676c9f811583751d0bd48cbef43
Fix a possibility of memory leaks when realloc fails.
Do not assign the return value of realloc into the variable that has
the original pointer because if realloc failed we will lose the chance
to release the address.
libarchive/archive_match.c
libarchive/archive_read.c
libarchive/archive_read_disk_posix.c
libarchive/archive_read_disk_windows.c
libarchive/archive_read_support_format_7zip.c
libarchive/archive_read_support_format_rar.c
libarchive/archive_write_set_format_iso9660.c