summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2006-07-13 15:20:02 +0000
committerKevin P. Fleming <kpfleming@digium.com>2006-07-13 15:20:02 +0000
commitce8a64969629329efb97315f2888c65f7c1b64fa (patch)
tree109af52820930254e64136d6094b39050905a27d /apps
parent54ce0f0a2276173791df95d9dc8a6397b72270d3 (diff)
Merged revisions 37441-37442 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r37441 | kpfleming | 2006-07-12 10:46:56 -0500 (Wed, 12 Jul 2006) | 3 lines fix a case where ast_lock_path() could leave a randomly-named lock file hanging around make ast_unlock_path actually report when unlocking fails ........ r37442 | kpfleming | 2006-07-12 10:53:53 -0500 (Wed, 12 Jul 2006) | 2 lines fix a weird case where a lock file could be left (but would happen almost never) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37514 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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 e0a7f3b21..210201721 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -2650,7 +2650,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);