[asterisk-bugs] [JIRA] (ASTERISK-20647) [patch] Failure to cleanup SQLite3 statements during exit causes call to sqlite3_close to fail; leaks memory
Matt Jordan (JIRA)
noreply at issues.asterisk.org
Sat Nov 3 20:17:21 CDT 2012
[ https://issues.asterisk.org/jira/browse/ASTERISK-20647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=199213#comment-199213 ]
Matt Jordan commented on ASTERISK-20647:
----------------------------------------
Well, good enough for a quick clean up :-)
You may want to take a peek at the [coding guidelines|https://wiki.asterisk.org/wiki/display/AST/Coding+Guidelines] on the Asterisk wiki (some spacing issues near the {{if}} statement, single lines in a block still require {}). Very minor stuff, but code reviewers always appreciate it when patches adhere to the guidelines.
Thanks again for the patches - always great to get memory leaks cleaned up!
> [patch] Failure to cleanup SQLite3 statements during exit causes call to sqlite3_close to fail; leaks memory
> ------------------------------------------------------------------------------------------------------------
>
> Key: ASTERISK-20647
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-20647
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Core/AstDB
> Affects Versions: SVN, 10.9.0-digiumphones, 11.0.0
> Reporter: Corey Farrell
> Assignee: Matt Jordan
> Severity: Minor
> Attachments: astdb-sqlite3_close.patch
>
>
> main/db.c:
> init_statements has no matching cleanup and sqlite3_close does not succeed if any prepared statements have not been finalized.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the asterisk-bugs
mailing list