]> git.sur5r.net Git - openldap/commitdiff
ITS#7992 Fix memleak in prev change
authorHallvard Furuseth <hallvard@openldap.org>
Thu, 4 Feb 2016 02:23:13 +0000 (03:23 +0100)
committerHoward Chu <hyc@openldap.org>
Thu, 4 Feb 2016 17:35:38 +0000 (17:35 +0000)
libraries/liblmdb/mdb.c

index 600f4f75c6b3076e618105f4d40a52280e6804fc..d2e81e4e9c541569279bddcee5d97c9a9ef24fb1 100644 (file)
@@ -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);