Commit 0b3cff4e authored by Claes Sjofors's avatar Claes Sjofors

Distribute fix for sev node

parent e5705510
...@@ -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