[Home]

Summary:ASTERISK-12372: [patch] Free cfg structure on error.
Reporter:Eliel Sardanons (eliel)Labels:
Date Opened:2008-07-13 12:37:59Date Closed:2008-07-14 17:15:27
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) asterisk.c.patch
Description:If we fail to open /dev/null, free cfg structure before returning.

Comments:By: Mark Michelson (mmichelson) 2008-07-14 17:12:47

Good catch! I'll commit this ASAP.

By: Digium Subversion (svnbot) 2008-07-14 17:15:25

Repository: asterisk
Revision: 130854

U   trunk/main/asterisk.c

------------------------------------------------------------------------
r130854 | mmichelson | 2008-07-14 17:15:21 -0500 (Mon, 14 Jul 2008) | 9 lines

Fix a memory leak in the case that /dev/null cannot be
opened when running startup commands from cli.conf

(closes issue ASTERISK-12372)
Reported by: eliel
Patches:
     asterisk.c.patch uploaded by eliel (license 64)


------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=130854