src/stored/parse_bsr.c
void remove_bsr(BSR *bsr)
{
   free_bsr_item((BSR *)bsr->volume);
   free_bsr_item((BSR *)bsr->client);
   free_bsr_item((BSR *)bsr->sessid);
   free_bsr_item((BSR *)bsr->sesstime);
   free_bsr_item((BSR *)bsr->volfile);
   free_bsr_item((BSR *)bsr->volblock);
   free_bsr_item((BSR *)bsr->voladdr);
   free_bsr_item((BSR *)bsr->JobId);
   free_bsr_item((BSR *)bsr->job);
   free_bsr_item((BSR *)bsr->FileIndex);
   free_bsr_item((BSR *)bsr->JobType);
   free_bsr_item((BSR *)bsr->JobLevel);
   if (bsr->fileregex) {
      bfree(bsr->fileregex);
   }
   if (bsr->fileregex_re) {
      regfree(bsr->fileregex_re);
      free(bsr->fileregex_re);
   }
   if (bsr->attr) {
      free_attr(bsr->attr);
   }
   if (bsr->next) {
      bsr->next->prev = bsr->prev;
   }
   if (bsr->prev) {
      bsr->prev->next = bsr->next;
   }
   free(bsr);
}
/*
 * Remove a single item from the bsr tree
 */
Remove a single item from the bsr tree
Remove a single item from the bsr tree
void remove_bsr(BSR *bsr)
{
   free_bsr_item((BSR *)bsr->volume);
   free_bsr_item((BSR *)bsr->client);
   free_bsr_item((BSR *)bsr->sessid);
   free_bsr_item((BSR *)bsr->sesstime);
   free_bsr_item((BSR *)bsr->volfile);
   free_bsr_item((BSR *)bsr->volblock);
   free_bsr_item((BSR *)bsr->voladdr);
   free_bsr_item((BSR *)bsr->JobId);
   free_bsr_item((BSR *)bsr->job);
   free_bsr_item((BSR *)bsr->FileIndex);
   free_bsr_item((BSR *)bsr->JobType);
   free_bsr_item((BSR *)bsr->JobLevel);
   if (bsr->fileregex) {
      bfree(bsr->fileregex);
   }
   if (bsr->fileregex_re) {
      regfree(bsr->fileregex_re);
      free(bsr->fileregex_re);
   }
   if (bsr->attr) {
      free_attr(bsr->attr);
   }
   if (bsr->next) {
      bsr->next->prev = bsr->prev;
   }
   if (bsr->prev) {
      bsr->prev->next = bsr->next;
   }
   free(bsr);
}
void remove_bsr ( BSR * bsr ) { free_bsr_item ( ( BSR * ) bsr -> volume ) ; free_bsr_item ( ( BSR * ) bsr -> client ) ; free_bsr_item ( ( BSR * ) bsr -> sessid ) ; free_bsr_item ( ( BSR * ) bsr -> sesstime ) ; free_bsr_item ( ( BSR * ) bsr -> volfile ) ; free_bsr_item ( ( BSR * ) bsr -> volblock ) ; free_bsr_item ( ( BSR * ) bsr -> voladdr ) ; free_bsr_item ( ( BSR * ) bsr -> JobId ) ; free_bsr_item ( ( BSR * ) bsr -> job ) ; free_bsr_item ( ( BSR * ) bsr -> FileIndex ) ; free_bsr_item ( ( BSR * ) bsr -> JobType ) ; free_bsr_item ( ( BSR * ) bsr -> JobLevel ) ; if ( bsr -> fileregex ) { bfree ( bsr -> fileregex ) ; } if ( bsr -> fileregex_re ) { regfree ( bsr -> fileregex_re ) ; free ( bsr -> fileregex_re ) ; } if ( bsr -> attr ) { free_attr ( bsr -> attr ) ; } if ( bsr -> next ) { bsr -> next -> prev = bsr -> prev ; } if ( bsr -> prev ) { bsr -> prev -> next = bsr -> next ; } free ( bsr ) ; }
Remove a single item from the bsr tree
Remove a single item from the bsr tree