many others, a complete list can be found in the file AUTHORS.
This program is Free Software; you can redistribute it and/or
modify it under the terms of version two of the GNU General Public
- License as published by the Free Software Foundation plus additions
- that are listed in the file LICENSE.
+ License as published by the Free Software Foundation and included
+ in the file LICENSE.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
return dev->Slot;
}
/* Virtual disk autochanger */
- if (dcr->device->changer_command[0] ==0) {
+ if (dcr->device->changer_command[0] == 0) {
return 1;
}
} else {
dev->Slot = 0; /* nothing loaded */
}
+ free_volume(dev); /* Free any volume associated with this drive */
free_pool_memory(changer);
unlock_changer(dcr);
}
dev->Slot = 0; /* nothing loaded */
Dmsg0(100, "Slot unloaded\n");
}
+ free_volume(dev); /* Free any volume associated with this drive */
unlock_changer(dcr);
dev->dunlock();
free_pool_memory(changer_cmd);