[OpenSIPS-Devel] [OpenSIPS/opensips] 5cbe3f: fix core database engine bug introduced with commi...

ionutrazvanionita ionutionita at opensips.org
Mon Jul 4 17:52:41 CEST 2016


  Branch: refs/heads/2.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 5cbe3fa3d4a7c36f401a9d115c88f705c97662ce
      https://github.com/OpenSIPS/opensips/commit/5cbe3fa3d4a7c36f401a9d115c88f705c97662ce
  Author: ionutrazvanionita <ionutionita at opensips.org>
  Date:   2016-07-04 (Mon, 04 Jul 2016)

  Changed paths:
    M db/db_row.c

  Log Message:
  -----------
  fix core database engine bug introduced with commit 980f15ec

(cherry picked from commit db37c5c411b529acd0cfeee4dfbc7925db6c2901)


  Commit: ccda718abb1464c2b44f993bbccf226be5c46079
      https://github.com/OpenSIPS/opensips/commit/ccda718abb1464c2b44f993bbccf226be5c46079
  Author: ionutrazvanionita <ionutionita at opensips.org>
  Date:   2016-07-04 (Mon, 04 Jul 2016)

  Changed paths:
    M modules/db_sqlite/dbase.c
    M modules/db_sqlite/row.c
    A modules/db_sqlite/row.c.orig

  Log Message:
  -----------
  [db_sqlite] fix memory management bugs

* core free function was used to free starting with commit 980f15ec
which was not freeing the memory correctly(result rows were
allocated all at once, but in the current version they were freed
once at a time);
* check if memory is allocated to prevent core dumps;

(cherry picked from commit bb506d2563c2670094537e70cc35b85d4ce4cd80)


Compare: https://github.com/OpenSIPS/opensips/compare/4da1a06935dc...ccda718abb14


More information about the Devel mailing list