[asterisk-bugs] [Asterisk 0013271]: [PATCH] ODBC database handles allocated but never released
Asterisk Bug Tracker
noreply at bugs.digium.com
Sun Aug 10 19:12:13 CDT 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=13271
======================================================================
Reported By: dveiga
Assigned To: Corydon76
======================================================================
Project: Asterisk
Issue ID: 13271
Category: Resources/res_odbc
Reproducibility: always
Severity: major
Priority: normal
Status: assigned
Asterisk Version: SVN
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!): 137081
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 2008-08-10 14:40 CDT
Last Modified: 2008-08-10 19:12 CDT
======================================================================
Summary: [PATCH] ODBC database handles allocated but never
released
Description:
Database handles are allocated but never released. Simple check:
SQLFreeHandle() es never called with handle type SQL_HANDLE_DBC in
res_odbc.c. When res_odbc is used with "idlecheck" param, system resources
are consumed untill a fatal failure occurs. As a new SQL_HANDLE_DBC handle
is always allocated in odbc_obj_connect(), the patch releases the previous
one in odbc_obj_disconnect().
======================================================================
----------------------------------------------------------------------
(0091269) svnbot (reporter) - 2008-08-10 19:12
http://bugs.digium.com/view.php?id=13271#c91269
----------------------------------------------------------------------
Repository: asterisk
Revision: 137138
U branches/1.4/res/res_odbc.c
------------------------------------------------------------------------
r137138 | tilghman | 2008-08-10 19:12:10 -0500 (Sun, 10 Aug 2008) | 5
lines
Deallocate database connection handle on disconnect, as we allocate
another
one on connect.
(closes issue http://bugs.digium.com/view.php?id=13271)
Reported by: dveiga
------------------------------------------------------------------------
http://svn.digium.com/view/asterisk?view=rev&revision=137138
Issue History
Date Modified Username Field Change
======================================================================
2008-08-10 19:12 svnbot Note Added: 0091269
======================================================================
More information about the asterisk-bugs
mailing list