Skip to content
Snippets Groups Projects
Commit c2aee728 authored by Tilghman Lesher's avatar Tilghman Lesher
Browse files

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
parent 97fe45ab
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment