[svn-commits] mmichelson: branch 1.6.0 r123534 - /branches/1.6.0/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Jun 17 16:28:03 CDT 2008


Author: mmichelson
Date: Tue Jun 17 16:28:02 2008
New Revision: 123534

URL: http://svn.digium.com/view/asterisk?view=rev&rev=123534
Log:
Blocked revisions 123526 via svnmerge

........
r123526 | mmichelson | 2008-06-17 16:26:31 -0500 (Tue, 17 Jun 2008) | 13 lines

_ys pointed out in #asterisk-bugs that he was experiencing
a memory leak when running the astobj2 test CLI command. After
searching, it appears the leak was in the command handler itself.

Each object was allocated (recount = 1) and then linked into
a container (refounct = 2). Then at the end of the function, 
the container was unreffed, causing all the objects to have
their refcount decremented by one, leaving the refcount for
all objects allocated in that function at 1. I've now added
an extra unref to the mix so that the refcount equals zero
when the container is unreffed.


........

Modified:
    branches/1.6.0/   (props changed)

Propchange: branches/1.6.0/
------------------------------------------------------------------------------
Binary property 'trunk-blocked' - no diff available.




More information about the svn-commits mailing list