]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix #6749 bextract crash at the end of a restore from dedup
authorAlain Spineux <alain@baculasystems.com>
Thu, 1 Oct 2020 12:34:41 +0000 (14:34 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:02:57 +0000 (09:02 +0100)
- bextract was not closing the restore connection opens with the DDE
  before to close the DDE

bacula/src/stored/bextract.c

index 5fa997bc0e0bd9d96950d252bcc83dd9a45a969e..ff5aa758bda3f7742a1b9df5ebad659159556874 100644 (file)
@@ -293,6 +293,7 @@ static void do_extract(char *devname)
    if (is_bopen(&bfd)) {
       set_attributes(jcr, attr, &bfd);
    }
+   dev->free_dedup_rehydration_interface(dcr); // disconnect from the DDE
    release_device(dcr);
    free_attr(attr);
    free_jcr(jcr);