X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fstored%2Fmount.c;h=9d542b98f4b8caadd96a2fc98afc5595fbe7b4e2;hb=4cad40b4beba29b87204024e96839131d596a00e;hp=6ad18646b56189c591a995a530635af543195309;hpb=8447702aeae6988598fdff0ab22ee0ee81c8727a;p=bacula%2Fbacula diff --git a/bacula/src/stored/mount.c b/bacula/src/stored/mount.c index 6ad18646b5..9d542b98f4 100644 --- a/bacula/src/stored/mount.c +++ b/bacula/src/stored/mount.c @@ -590,8 +590,7 @@ void release_volume(DCR *dcr) dev->EndBlock = dev->EndFile = 0; memset(&dev->VolCatInfo, 0, sizeof(dev->VolCatInfo)); memset(&dcr->VolCatInfo, 0, sizeof(dcr->VolCatInfo)); - free_volume(dev); - memset(&dev->VolHdr, 0, sizeof(dev->VolHdr)); + dev->clear_volhdr(); /* Force re-read of label */ dev->clear_labeled(); dev->clear_read();