From: Anthony Minessale Date: Thu, 18 Mar 2010 21:31:31 +0000 (+0000) Subject: declinatio mortuus obfirmo! X-Git-Tag: v1.0.6~120 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=db6f9857b0a86d1b83b1b53161f537556e6d0337;p=thirdparty%2Ffreeswitch.git declinatio mortuus obfirmo! git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@17045 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/applications/mod_voicemail/mod_voicemail.c b/src/mod/applications/mod_voicemail/mod_voicemail.c index cd859f1ed5..918cdd690e 100644 --- a/src/mod/applications/mod_voicemail/mod_voicemail.c +++ b/src/mod/applications/mod_voicemail/mod_voicemail.c @@ -3972,6 +3972,7 @@ SWITCH_STANDARD_API(voicemail_delete_api_function) update_mwi(profile, id, domain, "inbox"); stream->write_function(stream, "%s", "+OK\n"); + profile_rwunlock(profile); } else { stream->write_function(stream, "%s", "-ERR can't find user or profile.\n"); } @@ -4052,6 +4053,8 @@ SWITCH_STANDARD_API(voicemail_read_api_function) update_mwi(profile, id, domain, "inbox"); stream->write_function(stream, "%s", "+OK\n"); + + profile_rwunlock(profile); } else { stream->write_function(stream, "%s", "-ERR can't find user or profile.\n"); } @@ -4134,6 +4137,7 @@ SWITCH_STANDARD_API(voicemail_list_api_function) stream->write_function(stream, "\n"); } + profile_rwunlock(profile); } else { stream->write_function(stream, "%s", "-ERR can't find user or profile.\n"); }