]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
remove redundant restore_cleanup()
authorMichal Rakowski <michal.rakowski@baculasystems.com>
Mon, 18 Oct 2021 20:04:32 +0000 (22:04 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:56:56 +0000 (13:56 +0200)
For the success path, it's called anyway, for the error path it's called
if the `do_restore()` fails, so there is no need to call it twice.

bacula/src/dird/restore.c

index 89e09e3502bdba26e577d296309325971d5b5ca3..73b8c1f2b37e55e088a61258bc2066171704a983 100644 (file)
@@ -597,7 +597,6 @@ bool do_restore(JCR *jcr)
    return true;
 
 bail_out:
-   restore_cleanup(jcr, JS_ErrorTerminated);
    return false;
 }