[asterisk-bugs] [Asterisk 0014040]: [patch] Fix a memory leak while using threadstorage.
Asterisk Bug Tracker
noreply at bugs.digium.com
Tue Dec 9 08:49:27 CST 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=14040
======================================================================
Reported By: eliel
Assigned To: Corydon76
======================================================================
Project: Asterisk
Issue ID: 14040
Category: Functions/func_odbc
Reproducibility: have not tried
Severity: minor
Priority: normal
Status: assigned
Asterisk Version: SVN
SVN Branch (only for SVN checkouts, not tarball releases): trunk
SVN Revision (number only!): 161946
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 2008-12-09 08:42 CST
Last Modified: 2008-12-09 08:49 CST
======================================================================
Summary: [patch] Fix a memory leak while using threadstorage.
Description:
We are allocating a threadstorage when it is not needed, and the memory
will never be deallocated until asterisk stops running (obviusly).
This is when calling the CLI command implementation with CLI_INIT.
Also we were not checking the allocation result.
======================================================================
----------------------------------------------------------------------
(0096004) svnbot (reporter) - 2008-12-09 08:49
http://bugs.digium.com/view.php?id=14040#c96004
----------------------------------------------------------------------
Repository: asterisk
Revision: 161947
U trunk/funcs/func_odbc.c
------------------------------------------------------------------------
r161947 | eliel | 2008-12-09 08:49:26 -0600 (Tue, 09 Dec 2008) | 8 lines
Avoid allocating memory for a thread that don't need it. Also, this memory
was not being freed until the
main thread ends. (That is never).
(closes issue http://bugs.digium.com/view.php?id=14040)
Reported by: eliel
Patches:
func_odbc.c.patch uploaded by eliel (license 64)
------------------------------------------------------------------------
http://svn.digium.com/view/asterisk?view=rev&revision=161947
Issue History
Date Modified Username Field Change
======================================================================
2008-12-09 08:49 svnbot Checkin
2008-12-09 08:49 svnbot Note Added: 0096004
======================================================================
More information about the asterisk-bugs
mailing list