[asterisk-commits] qwell: trunk r113838 - /trunk/contrib/scripts/astcli

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Apr 9 12:56:08 CDT 2008


Author: qwell
Date: Wed Apr  9 12:56:07 2008
New Revision: 113838

URL: http://svn.digium.com/view/asterisk?view=rev&rev=113838
Log:
Fix a small file handle "leak" pointed out by jjshoe on #asterisk.

Modified:
    trunk/contrib/scripts/astcli

Modified: trunk/contrib/scripts/astcli
URL: http://svn.digium.com/view/asterisk/trunk/contrib/scripts/astcli?view=diff&rev=113838&r1=113837&r2=113838
==============================================================================
--- trunk/contrib/scripts/astcli (original)
+++ trunk/contrib/scripts/astcli Wed Apr  9 12:56:07 2008
@@ -80,6 +80,7 @@
 		(undef,$host) = split(/[,=]/, $_) if $_ =~ /host(name)?[,=]/i;
 		(undef,$port) = split(/[,=]/, $_) if $_ =~ /port(num|no)?[,=]/i;
 	}
+	close ($fh);
 }
 
 sub usage {




More information about the asterisk-commits mailing list