From: Hallvard Furuseth Date: Thu, 4 Feb 2016 02:23:13 +0000 (+0100) Subject: ITS#7992 Fix memleak in prev change X-Git-Tag: LMDB_0.9.18~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=60580aa678a89f83afd7cd8e6aa3c35cd0d12e25;p=openldap ITS#7992 Fix memleak in prev change --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 600f4f75c6..d2e81e4e9c 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -9295,7 +9295,7 @@ mdb_env_copy2(MDB_env *env, const char *path, unsigned int flags) #ifdef _WIN32 rc = utf8_to_utf16(lpath, -1, &wpath, NULL); if (rc) - return rc; + goto leave; newfd = CreateFileW(wpath, GENERIC_WRITE, 0, NULL, CREATE_NEW, FILE_FLAG_NO_BUFFERING|FILE_FLAG_WRITE_THROUGH, NULL); free(wpath);