Skip to content

Commit

Permalink
Fixes EUCA-3902 where a potential memory leak as been detected. Fixes
Browse files Browse the repository at this point in the history
Coverity issue #10183.
  • Loading branch information
gelinasc committed Nov 21, 2012
1 parent 5f2b015 commit 5e18cea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions net/vnetwork.c
Expand Up @@ -2187,8 +2187,9 @@ int vnetApplyArpTableRules(vnetConfig *vnetconfig) {
if (vnetconfig->publicips[k].allocated && vnetconfig->publicips[k].dstip) {
char *ip=NULL;
ip = hex2dot(vnetconfig->publicips[k].dstip);
if (ip && gw) {
fprintf(FH, "IP=%s,%s\n", ip,gw);
if (ip) {
if(gw)
fprintf(FH, "IP=%s,%s\n", ip,gw);
free(ip);
}
}
Expand Down

0 comments on commit 5e18cea

Please sign in to comment.