mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
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.
This commit is contained in:
parent
2bc96e39fc
commit
38a9dea4ae
1 changed files with 1 additions and 1 deletions
|
@ -728,7 +728,7 @@ int ha_archive::create(const char *name, TABLE *table_arg,
|
|||
goto error;
|
||||
}
|
||||
}
|
||||
if (!azdopen(&archive, dup(create_file), O_WRONLY|O_BINARY))
|
||||
if (!azdopen(&archive, create_file, O_WRONLY|O_BINARY))
|
||||
{
|
||||
error= errno;
|
||||
goto error2;
|
||||
|
|
Loading…
Add table
Reference in a new issue