From: Kern Sibbald Date: Mon, 7 Jul 2014 07:50:56 +0000 (+0200) Subject: Fix possible seg fault X-Git-Tag: Release-7.0.5~30 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1feae1cf5e980d657821ecde3b612494b2133bb2;p=bacula%2Fbacula Fix possible seg fault --- diff --git a/bacula/src/dird/ua_label.c b/bacula/src/dird/ua_label.c index 84d42b0f8e..012f337453 100644 --- a/bacula/src/dird/ua_label.c +++ b/bacula/src/dird/ua_label.c @@ -302,8 +302,9 @@ 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);