From: Kern Sibbald Date: Sun, 16 Sep 2012 10:39:54 +0000 (+0200) Subject: Fix double unlink X-Git-Tag: Release-7.0.0~107 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5de822e192a3fdecb582925edd5b24e6d125c418;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; }