src/stored/vol_mgr.c
void free_temp_vol_list(dlist *temp_vol_list)
{
   dlist *save_vol_list;

   lock_volumes();
   save_vol_list = vol_list;
   vol_list = temp_vol_list;
   free_volume_list();                  /* release temp_vol_list */
   vol_list = save_vol_list;
   Dmsg0(dbglvl, "deleted temp vol list\n");
   Dmsg0(dbglvl, "unlock volumes\n");
   unlock_volumes();
   debug_list_volumes("after free temp table");
}
/*
 * Free the specified temp list.
 */
Free the specified temp list.
Free the specified temp list .
void free_temp_vol_list(dlist *temp_vol_list)
{
   dlist *save_vol_list;
   lock_volumes();
   save_vol_list = vol_list;
   vol_list = temp_vol_list;
   free_volume_list();                  
   vol_list = save_vol_list;
   Dmsg0(dbglvl, "deleted temp vol list\n");
   Dmsg0(dbglvl, "unlock volumes\n");
   unlock_volumes();
   debug_list_volumes("after free temp table");
}
void free_temp_vol_list ( dlist * temp_vol_list ) { dlist * save_vol_list ; lock_volumes ( ) ; save_vol_list = vol_list ; vol_list = temp_vol_list ; free_volume_list ( ) ; vol_list = save_vol_list ; Dmsg0 ( dbglvl , " \n " ) ; Dmsg0 ( dbglvl , " \n " ) ; unlock_volumes ( ) ; debug_list_volumes ( " " ) ; }
Free the specified temp list.
Free the specified temp list .
/* release temp_vol_list */