dect
/
asterisk
Archived
13
0
Fork 0

Found and fixed a memory leak

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@193757 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
tilghman 2009-05-11 23:04:14 +00:00
parent 0863986d8c
commit 5883dca441
1 changed files with 3 additions and 1 deletions

View File

@ -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;