aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-12 16:02:19 +0000
committerroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-12 16:02:19 +0000
commit8b206f4b03a4c847c8bcc655de40eed8547fe9b2 (patch)
treee1faa199b2ffa6ae164cb1f37d3e0e36460c3be7 /apps
parentedb57a8916649d83262802651eb1ea577b67c775 (diff)
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@37455 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_voicemail.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 96973623f..4402d4d4f 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -2617,7 +2617,8 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, struct leave_vm_
} else if (ast_fileexists(tmptxtfile, NULL, NULL) <= 0) {
if (option_debug)
ast_log(LOG_DEBUG, "The recorded media file is gone, so we should remove the .txt file too!\n");
- unlink(tmptxtfile);
+ unlink(tmptxtfile);
+ ast_unlock_path(dir);
} else {
for (;;) {
make_file(fn, sizeof(fn), dir, msgnum);