[asterisk-bugs] [Asterisk 0017432]: Memory Leak : main/manager.c
Asterisk Bug Tracker
noreply at bugs.digium.com
Tue Jun 1 11:29:19 CDT 2010
The following issue has been CLOSED
======================================================================
https://issues.asterisk.org/view.php?id=17432
======================================================================
Reported By: fantiyu
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 17432
Category: Core/ManagerInterface
Reproducibility: always
Severity: major
Priority: normal
Status: closed
Asterisk Version: 1.6.2.7
JIRA:
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
Resolution: no change required
Fixed in Version:
======================================================================
Date Submitted: 2010-06-01 05:25 CDT
Last Modified: 2010-06-01 11:29 CDT
======================================================================
Summary: Memory Leak : main/manager.c
Description:
found memory leak yesterday. asterisk-1.6.2.7(released)
main/mamager.c, line 3154, function: do_message:
m.headers[m.hdrcount++] = ast_strdupa(header_buf);
the memory alloced by ast_strdupa are never released, we must release
those before the function returned.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0017234 [patch] Memory leak in manager.c
======================================================================
----------------------------------------------------------------------
(0122704) tilghman (administrator) - 2010-06-01 11:29
https://issues.asterisk.org/view.php?id=17432#c122704
----------------------------------------------------------------------
ast_strdupa allocates space off the stack. That memory is automatically
released when the function returns. This is not a memory leak.
Issue History
Date Modified Username Field Change
======================================================================
2010-06-01 11:29 tilghman Note Added: 0122704
2010-06-01 11:29 tilghman Status new => closed
2010-06-01 11:29 tilghman Resolution open => no change
required
======================================================================
More information about the asterisk-bugs
mailing list