diff --git a/src/client/GameSave.cpp b/src/client/GameSave.cpp index fa6a95535..8144e540c 100644 --- a/src/client/GameSave.cpp +++ b/src/client/GameSave.cpp @@ -2170,7 +2170,7 @@ char * GameSave::serialiseOPS(int & dataLength) if (BZ2_bzBuffToBuffCompress((char*)(outputData+12), &outputDataLen, (char*)finalData, bson_size(&b), 9, 0, 0) != BZ_OK) { puts("Save Error\n"); - free(outputData); + delete [] outputData; dataLength = 0; outputData = NULL; goto fin;