[mod_voicemail] Fix error-case return in vm_fsdb_pref_greeting_set_function

This commit is contained in:
Martin Paterson 2020-12-16 14:22:46 +00:00 committed by GitHub
parent 855d8bd3e4
commit d28dbd1cd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -5146,6 +5146,8 @@ SWITCH_STANDARD_API(vm_fsdb_pref_greeting_set_function)
switch_safe_free(sql);
} else {
stream->write_function(stream, "-ERR Recording doesn't exist [%s]\n", final_file_path);
profile_rwunlock(profile);
goto done;
}
profile_rwunlock(profile);
}