projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97fe45a
)
Conditionally free lock_info->thread_name to avoid a useless warning
author
Tilghman Lesher
<tilghman@meg.abyt.es>
Thu, 1 Nov 2007 06:12:08 +0000
(06:12 +0000)
committer
Tilghman Lesher
<tilghman@meg.abyt.es>
Thu, 1 Nov 2007 06:12:08 +0000
(06:12 +0000)
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
main/utils.c
patch
|
blob
|
history
diff --git
a/main/utils.c
b/main/utils.c
index
ccc21f5
..
5e9544b
100644
(file)
--- 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);
}