[Libreoffice-commits] core.git: Branch 'libreoffice-4-0' - setup_native/source

Julien Nabet serval2412 at yahoo.fr
Sun Feb 10 13:43:55 PST 2013


 setup_native/source/win32/wintools/makecab/parseddf.c |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 56215a00ed256977b802e0a742cf13a481b234cb
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Fri Feb 8 22:53:18 2013 +0100

    Fix Resource leak: ddf
    
    Change-Id: I4361b4f4670a0437c8220d2e7f92f2ffbe0cc479
    Reviewed-on: https://gerrit.libreoffice.org/2057
    Tested-by: LibreOffice gerrit bot <gerrit at libreoffice.org>
    Reviewed-by: Norbert Thiebaud <nthiebaud at gmail.com>
    Reviewed-on: https://gerrit.libreoffice.org/2080
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/setup_native/source/win32/wintools/makecab/parseddf.c b/setup_native/source/win32/wintools/makecab/parseddf.c
index cbd9914..cf081e3 100644
--- a/setup_native/source/win32/wintools/makecab/parseddf.c
+++ b/setup_native/source/win32/wintools/makecab/parseddf.c
@@ -378,6 +378,8 @@ DDFERR ParseDdf(char* ddfFile, PCCAB ccab, DDFSRCFILE ** srcListH, unsigned int
     ccab->cbFolderThresh = ccab->cb;
     ccab->iDisk = 0;
 
+    fclose(ddf);
+
     return DDF_OK;
 }
 


More information about the Libreoffice-commits mailing list