diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2007-11-01 06:12:08 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2007-11-01 06:12:08 +0000 |
commit | c2aee728e96abd3d62b742fac874490276f719ba (patch) | |
tree | 1d403e09c4e5d80cd03e9f368156d51c5b75f13b /main | |
parent | 97fe45ab93071c9a6d046a981b508edd0fbbceaf (diff) |
Conditionally free lock_info->thread_name to avoid a useless warning
Reported by: snuffy
Patch by: snuffy
Closes issue #11125
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@88010 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r-- | main/utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/utils.c b/main/utils.c index ccc21f537..5e9544bf3 100644 --- a/main/utils.c +++ b/main/utils.c @@ -584,7 +584,8 @@ static void lock_info_destroy(void *data) 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); } |