diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-31 21:25:11 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-31 21:25:11 +0000 |
commit | 429708be61aa87849d22506b160268529e333966 (patch) | |
tree | c5e1072803ac13065b5b9f0d0e7e352f5cb1acf9 /channels/chan_h323.c | |
parent | 0c01638a1711f8e63655a564971e18db13a904f1 (diff) |
Fix a bunch of places where pthread_attr_init() was called, but
pthread_attr_destroy() was not.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@53045 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_h323.c')
-rw-r--r-- | channels/chan_h323.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_h323.c b/channels/chan_h323.c index 1b4a616a5..b2d4d8184 100644 --- a/channels/chan_h323.c +++ b/channels/chan_h323.c @@ -1642,9 +1642,11 @@ static int restart_monitor(void) /* Start a new monitor */ if (ast_pthread_create(&monitor_thread, &attr, do_monitor, NULL) < 0) { ast_mutex_unlock(&monlock); + pthread_attr_destroy(&attr); ast_log(LOG_ERROR, "Unable to start monitor thread.\n"); return -1; } + pthread_attr_destroy(&attr); } ast_mutex_unlock(&monlock); |