diff options
author | unknown <tsmith/tim@siva.hindu.god> | 2006-09-14 14:59:14 -0600 |
---|---|---|
committer | unknown <tsmith/tim@siva.hindu.god> | 2006-09-14 14:59:14 -0600 |
commit | 38a9dea4aeb7fd66aac4915627025ee1ddd2efd8 (patch) | |
tree | 022a9e245e8264e2f9e854c9335d65a46144e985 /storage | |
parent | 2bc96e39fcd9494ac1eeed581825d2549e6193e3 (diff) | |
download | mariadb-git-38a9dea4aeb7fd66aac4915627025ee1ddd2efd8.tar.gz |
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.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/archive/ha_archive.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/archive/ha_archive.cc b/storage/archive/ha_archive.cc index 0bceede27d8..3029b1db53e 100644 --- a/storage/archive/ha_archive.cc +++ b/storage/archive/ha_archive.cc @@ -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; |