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:
Cary R 2009-09-25 11:46:02 -07:00 committed by Stephen Williams
parent a84faabdb0
commit 1c8a1bbf7f
1 changed files with 2 additions and 0 deletions

View File

@ -298,6 +298,7 @@ static void __compile_net(char*label,
msb, lsb, array_addr,
signed_flag, net8_flag, local_flag);
resolv_submit(res);
free(argv);
return;
}
assert(node);
@ -305,6 +306,7 @@ static void __compile_net(char*label,
__compile_net2(node, array, label, name, msb, lsb, array_addr,
signed_flag, net8_flag, local_flag);
free(argv[0].text);
free(argv);
}