From 4020aec13e0e44c5b395e8a4186269951a4c10b0 Mon Sep 17 00:00:00 2001 From: Philippe Saint-Pierre Date: Tue, 31 Jan 2012 21:37:53 -0500 Subject: [PATCH] Installer: minor memory leak fix. CID 1713. --- src/apps/installer/CopyEngine.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/apps/installer/CopyEngine.cpp b/src/apps/installer/CopyEngine.cpp index d75509bc8f..b4f4eca84b 100644 --- a/src/apps/installer/CopyEngine.cpp +++ b/src/apps/installer/CopyEngine.cpp @@ -182,6 +182,8 @@ printf("CopyFile - cancled\n"); if (read < 0) { ret = (status_t)read; fprintf(stderr, "Failed to read data: %s\n", strerror(ret)); + delete buffer; + delete destination; break; }