[Scummvm-git-logs] scummvm master -> 82061bdd81e3769b0ef9094b81bc597c9eb03c50

Strangerke noreply at scummvm.org
Wed Jun 25 22:48:46 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
82061bdd81 M4: Fix Coverity SID 1532924 (memory leak) in ws_cruncher


Commit: 82061bdd81e3769b0ef9094b81bc597c9eb03c50
    https://github.com/scummvm/scummvm/commit/82061bdd81e3769b0ef9094b81bc597c9eb03c50
Author: Strangerke (arnaud.boutonne at gmail.com)
Date: 2025-06-25T23:48:34+01:00

Commit Message:
M4: Fix Coverity SID 1532924 (memory leak) in ws_cruncher

Changed paths:
    engines/m4/wscript/ws_cruncher.cpp


diff --git a/engines/m4/wscript/ws_cruncher.cpp b/engines/m4/wscript/ws_cruncher.cpp
index 3706e4d61cf..0573d03bc1a 100644
--- a/engines/m4/wscript/ws_cruncher.cpp
+++ b/engines/m4/wscript/ws_cruncher.cpp
@@ -190,6 +190,7 @@ Anim8 *ws_AddAnim8ToCruncher(machine *m, int32 sequHash) {
 	int32 numLocalVars;
 	myAnim8->sequHandle = ws_GetSEQU((uint32)sequHash, &numLocalVars, &myAnim8->pcOffset);
 	if (myAnim8->sequHandle == nullptr) {
+		mem_free(myAnim8);
 		return nullptr;
 	}
 




More information about the Scummvm-git-logs mailing list