[asterisk-commits] kpfleming: branch 1.6.0 r192358 - in /branches/1.6.0: ./ include/asterisk/ main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue May 5 08:23:30 CDT 2009


Author: kpfleming
Date: Tue May  5 08:23:27 2009
New Revision: 192358

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

........
  r192357 | kpfleming | 2009-05-05 15:18:21 +0200 (Tue, 05 May 2009) | 5 lines
  
  Correct some flaws in the memory accounting code for stringfields and ao2 objects
  
  Under some conditions, the memory allocation for stringfields and ao2 objects would not have supplied valid file/function names for MALLOC_DEBUG tracking, so this commit corrects that.
........

Modified:
    branches/1.6.0/   (props changed)
    branches/1.6.0/include/asterisk/stringfields.h
    branches/1.6.0/main/utils.c

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

Modified: branches/1.6.0/include/asterisk/stringfields.h
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.6.0/include/asterisk/stringfields.h?view=diff&rev=192358&r1=192357&r2=192358
==============================================================================
--- branches/1.6.0/include/asterisk/stringfields.h (original)
+++ branches/1.6.0/include/asterisk/stringfields.h Tue May  5 08:23:27 2009
@@ -243,7 +243,7 @@
 
 /*! \brief free all memory - to be called before destroying the object */
 #define ast_string_field_free_memory(x)	\
-	__ast_string_field_init(&(x)->__field_mgr, &(x)->__field_mgr_pool, -1, NULL, 0, NULL)
+	__ast_string_field_init(&(x)->__field_mgr, &(x)->__field_mgr_pool, -1, __FILE__, __LINE__, __PRETTY_FUNCTION__)
 
 /*!
  * \internal

Modified: branches/1.6.0/main/utils.c
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.6.0/main/utils.c?view=diff&rev=192358&r1=192357&r2=192358
==============================================================================
--- branches/1.6.0/main/utils.c (original)
+++ branches/1.6.0/main/utils.c Tue May  5 08:23:27 2009
@@ -1468,7 +1468,7 @@
 		if (add_string_pool(mgr, pool_head, new_size, mgr->owner_file, mgr->owner_line, mgr->owner_func))
 			return NULL;
 #else
-		if (add_string_pool(mgr, pool_head, new_size, NULL, 0, NULL))
+		if (add_string_pool(mgr, pool_head, new_size, __FILE__, __LINE__, __FUNCTION__))
 			return NULL;
 #endif
 	}




More information about the asterisk-commits mailing list