[svn-commits] tilghman: trunk r88010 - /trunk/main/utils.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Nov 1 01:12:08 CDT 2007


Author: tilghman
Date: Thu Nov  1 01:12:08 2007
New Revision: 88010

URL: http://svn.digium.com/view/asterisk?view=rev&rev=88010
Log:
Conditionally free lock_info->thread_name to avoid a useless warning
Reported by: snuffy
Patch by: snuffy
Closes issue #11125

Modified:
    trunk/main/utils.c

Modified: trunk/main/utils.c
URL: http://svn.digium.com/view/asterisk/trunk/main/utils.c?view=diff&rev=88010&r1=88009&r2=88010
==============================================================================
--- trunk/main/utils.c (original)
+++ trunk/main/utils.c Thu Nov  1 01:12:08 2007
@@ -584,7 +584,8 @@
 	pthread_mutex_unlock(&lock_infos_lock.mutex);
 
 	pthread_mutex_destroy(&lock_info->lock);
-	free((void *) lock_info->thread_name);
+	if (lock_info->thread_name)
+		free((void *) lock_info->thread_name);
 	free(lock_info);
 }
 




More information about the svn-commits mailing list