diff options
author | Matthew Jordan <mjordan@digium.com> | 2012-11-04 01:19:43 +0000 |
---|---|---|
committer | Matthew Jordan <mjordan@digium.com> | 2012-11-04 01:19:43 +0000 |
commit | a243f4f153bf405bf1d2475c1394b366df5acf25 (patch) | |
tree | 53f3a465ac859617f8392857b43cd9f233c6f319 /mkinstalldirs | |
parent | ff469e9d5d61b8fc2b24b0965182a380fb347155 (diff) |
Properly finalize prepared SQLite3 statements to prevent memory leak
The AstDB uses prepared SQLite3 statements to retrieve data from the SQLite3
database. These statements should be finalized during Asterisk shutdown so
that the SQLite3 database can be properly closed. Failure to finalize the
statements results in a memory leak and a failure when closing the database.
This patch fixes those issues by ensuring that all prepared statements are
properly finalized at shutdown.
(closes issue ASTERISK-20647)
Reported by: Corey Farrell
patches:
astdb-sqlite3_close.patch uploaded by Corey Farrell (license 5909)
........
Merged revisions 375761 from http://svn.asterisk.org/svn/asterisk/branches/10
........
Merged revisions 375763 from http://svn.asterisk.org/svn/asterisk/branches/11
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@375770 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'mkinstalldirs')
0 files changed, 0 insertions, 0 deletions