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:
76d7462
)
Found and fixed a memory leak
author
Tilghman Lesher
<tilghman@meg.abyt.es>
Mon, 11 May 2009 23:04:14 +0000
(23:04 +0000)
committer
Tilghman Lesher
<tilghman@meg.abyt.es>
Mon, 11 May 2009 23:04:14 +0000
(23:04 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@193757
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
apps/app_voicemail.c
patch
|
blob
|
history
diff --git
a/apps/app_voicemail.c
b/apps/app_voicemail.c
index
3381cfc
..
b6737b3
100644
(file)
--- 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;