Clean up a couple of memory leaks in the new net rework code.
This patch fixes a couple of minor memory leaks in the new net rework code.
This commit is contained in:
parent
a84faabdb0
commit
1c8a1bbf7f
|
|
@ -298,6 +298,7 @@ static void __compile_net(char*label,
|
||||||
msb, lsb, array_addr,
|
msb, lsb, array_addr,
|
||||||
signed_flag, net8_flag, local_flag);
|
signed_flag, net8_flag, local_flag);
|
||||||
resolv_submit(res);
|
resolv_submit(res);
|
||||||
|
free(argv);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
assert(node);
|
assert(node);
|
||||||
|
|
@ -305,6 +306,7 @@ static void __compile_net(char*label,
|
||||||
__compile_net2(node, array, label, name, msb, lsb, array_addr,
|
__compile_net2(node, array, label, name, msb, lsb, array_addr,
|
||||||
signed_flag, net8_flag, local_flag);
|
signed_flag, net8_flag, local_flag);
|
||||||
|
|
||||||
|
free(argv[0].text);
|
||||||
free(argv);
|
free(argv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue