[Scummvm-git-logs] scummvm master -> eb79194f8640d1c1696d68b9074b75f9e6e12731

rvanlaar noreply at scummvm.org
Mon Sep 19 21:57:16 UTC 2022


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:
eb79194f86 DIRECTOR: Fix memory leak


Commit: eb79194f8640d1c1696d68b9074b75f9e6e12731
    https://github.com/scummvm/scummvm/commit/eb79194f8640d1c1696d68b9074b75f9e6e12731
Author: Roland van Laar (roland at rolandvanlaar.nl)
Date: 2022-09-19T23:08:55+02:00

Commit Message:
DIRECTOR: Fix memory leak

Free data after allocating it for dumping resource chunks.

Changed paths:
    engines/director/archive.cpp


diff --git a/engines/director/archive.cpp b/engines/director/archive.cpp
index 6b1c578fb3c..4d7e5cb286a 100644
--- a/engines/director/archive.cpp
+++ b/engines/director/archive.cpp
@@ -242,6 +242,7 @@ void Archive::dumpChunk(Resource &res, Common::DumpFile &out) {
 	}
 
 	delete resStream;
+	free(data);
 }
 
 // Mac Archive code




More information about the Scummvm-git-logs mailing list