projects
/
platform
/
upstream
/
lmdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f5f4da
)
ITS#7992 Fix memleak in prev change
author
Hallvard Furuseth
<hallvard@openldap.org>
Thu, 4 Feb 2016 02:23:13 +0000
(
03:23
+0100)
committer
Hallvard Furuseth
<hallvard@openldap.org>
Thu, 4 Feb 2016 02:23:13 +0000
(
03:23
+0100)
libraries/liblmdb/mdb.c
patch
|
blob
|
history
diff --git
a/libraries/liblmdb/mdb.c
b/libraries/liblmdb/mdb.c
index
47bcb3b
..
ea9e472
100644
(file)
--- a/
libraries/liblmdb/mdb.c
+++ b/
libraries/liblmdb/mdb.c
@@
-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);