]> 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)
committerHallvard Furuseth <hallvard@openldap.org>
Thu, 4 Feb 2016 02:23:13 +0000 (03:23 +0100)
libraries/liblmdb/mdb.c

index 47bcb3b422985411573f96fb1ad71309c8be09c4..ea9e4729025f4934af2a0e473d268f8b9973385d 100644 (file)
@@ -10120,7 +10120,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);