[Scummvm-cvs-logs] scummvm master -> 5e304618bfa581742329c2d42e661f69755a6c91
eriktorbjorn
eriktorbjorn at telia.com
Wed Jan 2 20:32:58 CET 2013
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
5e304618bf SCI: Fix potential (but probably very unlikely) memory leak
Commit: 5e304618bfa581742329c2d42e661f69755a6c91
https://github.com/scummvm/scummvm/commit/5e304618bfa581742329c2d42e661f69755a6c91
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2013-01-02T11:19:36-08:00
Commit Message:
SCI: Fix potential (but probably very unlikely) memory leak
Spotted by Clang's code analyzer.
Changed paths:
engines/sci/decompressor.cpp
diff --git a/engines/sci/decompressor.cpp b/engines/sci/decompressor.cpp
index 82af6ec..3068250 100644
--- a/engines/sci/decompressor.cpp
+++ b/engines/sci/decompressor.cpp
@@ -590,6 +590,8 @@ void DecompressorLZW::reorderView(byte *src, byte *dest) {
if (celindex < cel_total) {
warning("View decompression generated too few (%d / %d) headers", celindex, cel_total);
+ free(cc_pos);
+ free(cc_lengths);
return;
}
More information about the Scummvm-git-logs
mailing list