From 3cf3ef98f0a802b31f054c7988ce738d60935b35 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Wed, 20 Feb 2013 16:57:35 +0100 Subject: [PATCH] Correctly free memory Signed-off-by: Sven Strickroth --- src/Git/GitIndex.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Git/GitIndex.cpp b/src/Git/GitIndex.cpp index 03ccb1dc5..fc8bf498f 100644 --- a/src/Git/GitIndex.cpp +++ b/src/Git/GitIndex.cpp @@ -528,6 +528,7 @@ int CGitHeadFileList::GetPackRef(const CString &gitdir) if (size != filesize) { + delete[] buff; ret = -1; break; } -- 2.11.4.GIT