Commit 38a9dea4 authored by unknown's avatar unknown

Post-merge fix: remove dup() call in ha_archive.cc which resulted in a memory leak.


storage/archive/ha_archive.cc:
  Remove dup() call from azdopen(&archive, create_file, ...), as it resulted in a memory leak.
parent 2bc96e39
...@@ -728,7 +728,7 @@ int ha_archive::create(const char *name, TABLE *table_arg, ...@@ -728,7 +728,7 @@ int ha_archive::create(const char *name, TABLE *table_arg,
goto error; goto error;
} }
} }
if (!azdopen(&archive, dup(create_file), O_WRONLY|O_BINARY)) if (!azdopen(&archive, create_file, O_WRONLY|O_BINARY))
{ {
error= errno; error= errno;
goto error2; goto error2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment