]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3164
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 18 Mar 2011 16:57:10 +0000 (11:57 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 18 Mar 2011 16:57:16 +0000 (11:57 -0500)
src/mod/applications/mod_voicemail/mod_voicemail.c

index 5515f76b723a73965e8ab92dd37846464b8333f0..a046021034cab45b4656778d7522a0e254500767 100644 (file)
@@ -2492,6 +2492,7 @@ static switch_status_t deliver_vm(vm_profile_t *profile,
        if (copy) {
                switch_file_copy(path, file_path, SWITCH_FPROT_FILE_SOURCE_PERMS, pool);
        } else {
+               switch_safe_free(file_path);
                file_path = (char *) path;
        }