From: Kern Sibbald Date: Sun, 16 Sep 2012 10:39:54 +0000 (+0200) Subject: Fix double unlink X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=57957b6c6866495420d4cde03d993b1ebe5f1180;p=bacula%2Fbacula Fix double unlink --- diff --git a/bacula/src/lib/message.c b/bacula/src/lib/message.c index c3ac172cb2..fc7f22ae7d 100644 --- a/bacula/src/lib/message.c +++ b/bacula/src/lib/message.c @@ -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; }