X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fstored%2Fautochanger.c;h=d459689e32d639e135da001e651799d22a05dc10;hb=6bea24b0386f7076c4bdba4c3ce7ffb2953511b3;hp=67cca5bad6ebbbe8f7e74ec4844b8d2d1348a4f0;hpb=463df9e4ba74a64f5ae90000e9e6bcdaedbdf4fb;p=bacula%2Fbacula diff --git a/bacula/src/stored/autochanger.c b/bacula/src/stored/autochanger.c index 67cca5bad6..d459689e32 100644 --- a/bacula/src/stored/autochanger.c +++ b/bacula/src/stored/autochanger.c @@ -72,16 +72,13 @@ int autoload_device(JCR *jcr, DEVICE *dev, int writing, BSOCK *dir) if (slot > 0 && jcr->device->changer_name && jcr->device->changer_command) { uint32_t timeout = jcr->device->max_changer_wait; - POOLMEM *changer, *results; + POOLMEM *changer; int loaded, status; - results = get_pool_memory(PM_MESSAGE); changer = get_pool_memory(PM_FNAME); loaded = get_autochanger_loaded_slot(jcr); - Dmsg1(400, "loaded=%s\n", results); - /* If tape we want is not loaded, load it. */ if (loaded != slot) { offline_or_rewind_dev(dev); @@ -121,7 +118,6 @@ int autoload_device(JCR *jcr, DEVICE *dev, int writing, BSOCK *dir) status = 0; /* we got what we want */ } free_pool_memory(changer); - free_pool_memory(results); Dmsg1(400, "After changer, status=%d\n", status); if (status == 0) { /* did we succeed? */ rtn_stat = 1; /* tape loaded by changer */