From 0482a3104c27801c469c7346bcb29d115818d895 Mon Sep 17 00:00:00 2001 From: grahamboree Date: Wed, 24 Dec 2014 15:35:36 -0500 Subject: [PATCH] Fixed potential memory leak deserializing an InputGeom. --- RecastDemo/Source/InputGeom.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/RecastDemo/Source/InputGeom.cpp b/RecastDemo/Source/InputGeom.cpp index f1e0186..b532511 100644 --- a/RecastDemo/Source/InputGeom.cpp +++ b/RecastDemo/Source/InputGeom.cpp @@ -178,6 +178,7 @@ bool InputGeom::load(rcContext* ctx, const char* filePath) fclose(fp); if (readLen != 1) { + delete[] buf; return false; }