Commit 38a9dea4 authored by unknown's avatar unknown
Browse files

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;