]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix possible seg fault
authorKern Sibbald <kern@sibbald.com>
Mon, 7 Jul 2014 07:50:56 +0000 (09:50 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 12 Jul 2014 14:02:26 +0000 (16:02 +0200)
bacula/src/dird/ua_label.c

index 84d42b0f8ee05f34c03076e5aa89d3df9c2e1fec..012f337453d0ab07463e5efffae758c638d374e0 100644 (file)
@@ -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);