Commit 2f4bc740 authored by Claes Sjofors's avatar Claes Sjofors Committed by Claes Sjöfors

Distribute fix for sev node

parent 1dd8f08d
...@@ -222,6 +222,8 @@ void wb_pkg::readConfig() ...@@ -222,6 +222,8 @@ void wb_pkg::readConfig()
n.push_back(pboot); n.push_back(pboot);
// Read bootfile, get plc and volumes // Read bootfile, get plc and volumes
vollist = 0;
volnamelist = 0;
sts = lfu_ReadBootFile(fname, &date, systemname, systemgroup, &vollist, sts = lfu_ReadBootFile(fname, &date, systemname, systemgroup, &vollist,
&volnamelist, &volcount, &plclist, &plccount); &volnamelist, &volcount, &plclist, &plccount);
if (EVEN(sts)) if (EVEN(sts))
...@@ -294,8 +296,10 @@ void wb_pkg::readConfig() ...@@ -294,8 +296,10 @@ void wb_pkg::readConfig()
} }
} }
free(volnamelist); if (volnamelist)
free(vollist); free(volnamelist);
if (vollist)
free(vollist);
} catch (wb_error& e) { } catch (wb_error& e) {
if (e.what() == std::string("No such node")) if (e.what() == std::string("No such node"))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment