From 1fceab6e4af12964143a08089a5cb3d95775cbf6 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Mon, 18 Jun 2012 15:57:41 +0100 Subject: [PATCH] Ensure partsSimIndex is freed upon success state of OPS parsing --- src/client/GameSave.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/GameSave.cpp b/src/client/GameSave.cpp index 6cc80e75f..a7b9fbf98 100644 --- a/src/client/GameSave.cpp +++ b/src/client/GameSave.cpp @@ -705,6 +705,8 @@ fin: bson_destroy(&b); if(freeIndices) free(freeIndices); + if(partsSimIndex) + free(partsSimIndex); } void GameSave::readPSv(char * data, int dataLength)