diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-05-11 23:04:14 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-05-11 23:04:14 +0000 |
commit | 5883dca44123f82e1b0253e2857a95ca637bbf44 (patch) | |
tree | 939219ab5982ac255311a3b950abcd080d11c7ec /apps | |
parent | 0863986d8cd5fa62fbba2f50ac52a85437350105 (diff) |
Found and fixed a memory leak
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@193757 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 3381cfc6c..b6737b37d 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -415,6 +415,8 @@ static AST_LIST_HEAD_STATIC(vmstates, vmstate); #define ERROR_LOCK_PATH -100 +AST_THREADSTORAGE(voicemail_extension_list); + enum { NEW_FOLDER, OLD_FOLDER, @@ -5074,7 +5076,7 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, struct leave_vm_ char fmt[80]; char *context; char ecodes[17] = "#"; - struct ast_str *tmp = ast_str_create(16); + struct ast_str *tmp = ast_str_thread_get(&voicemail_extension_list, 16); char *tmpptr; struct ast_vm_user *vmu; struct ast_vm_user svm; |