diff options
-rw-r--r-- | setup_native/source/win32/wintools/msidb/msidb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setup_native/source/win32/wintools/msidb/msidb.c b/setup_native/source/win32/wintools/msidb/msidb.c index c492ba290618..2ad33478a2f9 100644 --- a/setup_native/source/win32/wintools/msidb/msidb.c +++ b/setup_native/source/win32/wintools/msidb/msidb.c @@ -146,8 +146,8 @@ static BOOL msidbExportStorage(LPCWSTR dbfile, LPCWSTR wdir, LPWSTR storageName) if (fp != NULL) { fwrite(dataBuffer, 1, dataLen, fp); + fclose(fp); } - fclose(fp); free(storagePath); MsiCloseHandle(rec); @@ -262,8 +262,8 @@ static BOOL msidbExportStream(LPCWSTR dbfile, LPCWSTR wdir, LPCWSTR streamName) if (fp != NULL) { fwrite(dataBuffer, 1, dataLen, fp); + fclose(fp); } - fclose(fp); free(streamFileA); MsiCloseHandle(rec); |