mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
fix minor memory leak with default bootimage symbols
This commit is contained in:
parent
3dcf886bbe
commit
362d6594a8
@ -1826,10 +1826,10 @@ public:
|
|||||||
entryClass(0),
|
entryClass(0),
|
||||||
entryMethod(0),
|
entryMethod(0),
|
||||||
entrySpec(0),
|
entrySpec(0),
|
||||||
bootimageStart(strdup("_binary_bootimage_bin_start")),
|
bootimageStart(0),
|
||||||
bootimageEnd(strdup("_binary_bootimage_bin_end")),
|
bootimageEnd(0),
|
||||||
codeimageStart(strdup("_binary_codeimage_bin_start")),
|
codeimageStart(0),
|
||||||
codeimageEnd(strdup("_binary_codeimage_bin_end"))
|
codeimageEnd(0)
|
||||||
{
|
{
|
||||||
ArgParser parser;
|
ArgParser parser;
|
||||||
Arg classpath(parser, true, "cp", "<classpath>");
|
Arg classpath(parser, true, "cp", "<classpath>");
|
||||||
@ -1870,6 +1870,22 @@ public:
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!bootimageStart) {
|
||||||
|
bootimageStart = strdup("_binary_bootimage_bin_start");
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!bootimageEnd) {
|
||||||
|
bootimageEnd = strdup("_binary_bootimage_bin_end");
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!codeimageStart) {
|
||||||
|
codeimageStart = strdup("_binary_codeimage_bin_start");
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!codeimageEnd) {
|
||||||
|
codeimageEnd = strdup("_binary_codeimage_bin_end");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
~Arguments() {
|
~Arguments() {
|
||||||
|
Loading…
Reference in New Issue
Block a user