Skip to content

Commit

Permalink
Only free a vollist when we have one.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed Feb 17, 2015
1 parent aba58ec commit b17d647
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dird/ua_label.c
Expand Up @@ -453,7 +453,9 @@ static void label_from_barcodes(UAContext *ua, int drive, bool label_encrypt)

bail_out:
free(slot_list);
free_vol_list(vol_list);
if (vol_list) {
free_vol_list(vol_list);
}
close_sd_bsock(ua);

return;
Expand Down

0 comments on commit b17d647

Please sign in to comment.