[svn-commits] mmichelson: branch 1.6.1 r183768 - in /branches/1.6.1: ./ res/res_monitor.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Mar 23 13:59:33 CDT 2009


Author: mmichelson
Date: Mon Mar 23 13:59:30 2009
New Revision: 183768

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=183768
Log:
Merged revisions 183766 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

................
  r183766 | mmichelson | 2009-03-23 13:58:03 -0500 (Mon, 23 Mar 2009) | 13 lines
  
  Merged revisions 183700 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r183700 | mmichelson | 2009-03-23 12:59:28 -0500 (Mon, 23 Mar 2009) | 7 lines
    
    Fix a memory leak in res_monitor.c
    
    The only way that this leak would occur is if Monitor were started
    using the Manager interface and no File: header were given. Discovered
    while reviewing the ast_channel_ao2 review request.
  ........
................

Modified:
    branches/1.6.1/   (props changed)
    branches/1.6.1/res/res_monitor.c

Propchange: branches/1.6.1/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.1/res/res_monitor.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.1/res/res_monitor.c?view=diff&rev=183768&r1=183767&r2=183768
==============================================================================
--- branches/1.6.1/res/res_monitor.c (original)
+++ branches/1.6.1/res/res_monitor.c Mon Mar 23 13:59:30 2009
@@ -587,11 +587,7 @@
 
 	if (ast_strlen_zero(fname)) {
 		/* No filename base specified, default to channel name as per CLI */		
-		if (!(fname = ast_strdup(c->name))) {
-			astman_send_error(s, m, "Could not start monitoring channel");
-			ast_channel_unlock(c);
-			return 0;
-		}
+		fname = ast_strdupa(c->name);
 		/* Channels have the format technology/channel_name - have to replace that /  */
 		if ((d = strchr(fname, '/'))) 
 			*d = '-';




More information about the svn-commits mailing list