Browse Source

Plug a memory leak in buf_dblwr_process().

pull/288/head
Marko Mäkelä 9 years ago
parent
commit
fb5ee7d6d0
  1. 3
      storage/innobase/buf/buf0dblwr.cc
  2. 3
      storage/xtradb/buf/buf0dblwr.cc

3
storage/innobase/buf/buf0dblwr.cc

@ -1,7 +1,7 @@
/*****************************************************************************
Copyright (c) 1995, 2014, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2013, 2016, MariaDB Corporation. All Rights Reserved.
Copyright (c) 2013, 2017, MariaDB Corporation. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
@ -636,6 +636,7 @@ buf_dblwr_process()
}
}
ut_free(unaligned_read_buf);
fil_flush_file_spaces(FIL_TABLESPACE);
{

3
storage/xtradb/buf/buf0dblwr.cc

@ -1,7 +1,7 @@
/*****************************************************************************
Copyright (c) 1995, 2014, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2013, 2016, MariaDB Corporation. All Rights Reserved.
Copyright (c) 2013, 2017, MariaDB Corporation. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
@ -635,6 +635,7 @@ buf_dblwr_process()
}
}
ut_free(unaligned_read_buf);
fil_flush_file_spaces(FIL_TABLESPACE);
{

Loading…
Cancel
Save