summaryrefslogtreecommitdiff
path: root/main/cryptostub.c
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2008-06-17 21:26:31 +0000
committerMark Michelson <mmichelson@digium.com>2008-06-17 21:26:31 +0000
commitfb3564de50945cb42022e88a8a7be4273fdfa632 (patch)
treefac0c3a4267b6f2829f923da0a7840d99b756a44 /main/cryptostub.c
parent67ca33e2675af0b775d13ae7bdf015c53e4c58a8 (diff)
_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. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@123526 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/cryptostub.c')
0 files changed, 0 insertions, 0 deletions