Skip to content

Commit

Permalink
Director segfaults doing update slots when all slots are empty
Browse files Browse the repository at this point in the history
Fixes #293: Director segfaults doing update slots when all slots are empty
  • Loading branch information
Marco van Wieringen committed May 8, 2014
1 parent 5e1fe2e commit 26f89b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dird/ua_update.c
Expand Up @@ -1159,7 +1159,9 @@ static void update_slots(UAContext *ua)
db_unlock(ua->db);

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

Expand Down

0 comments on commit 26f89b3

Please sign in to comment.