]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix double unlink
authorKern Sibbald <kern@sibbald.com>
Sun, 16 Sep 2012 10:39:54 +0000 (12:39 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:50:59 +0000 (14:50 +0200)
bacula/src/lib/message.c

index c3ac172cb291d3cff172ff55900f82ff0b192500..fc7f22ae7dc91c3d8269e275b7a63f5556d74093 100644 (file)
@@ -596,7 +596,6 @@ rem_temp_file:
             if (d->mail_filename) {
                /* Exclude spaces in mail_filename */
                safer_unlink(d->mail_filename, MAIL_REGEX);
-               unlink(d->mail_filename);
                free_pool_memory(d->mail_filename);
                d->mail_filename = NULL;
             }