From 74cb7df3c08fb2da5941b831a67b698ce3613652 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 20 Jun 2016 14:04:38 +0100 Subject: [PATCH] Fixed potential memory leak --- src/osgPlugins/zip/ZipArchive.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/osgPlugins/zip/ZipArchive.cpp b/src/osgPlugins/zip/ZipArchive.cpp index dfe8c139c..65631dbf4 100644 --- a/src/osgPlugins/zip/ZipArchive.cpp +++ b/src/osgPlugins/zip/ZipArchive.cpp @@ -399,6 +399,10 @@ osgDB::ReaderWriter* ZipArchive::ReadFromZipEntry(const ZIPENTRY* ze, const osgD return rw; } } + else + { + delete[] ibuf; + } } else {