From 8064f8c2365af0516ba2ab9d9cac402adcb6e956 Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Wed, 6 Jul 2005 09:27:08 +0000 Subject: [PATCH] Fix some compilation issues. svn path=/trunk/; revision=16450 --- reactos/apps/utils/net/arp/arp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reactos/apps/utils/net/arp/arp.c b/reactos/apps/utils/net/arp/arp.c index e78be33cbc5..a563291afed 100644 --- a/reactos/apps/utils/net/arp/arp.c +++ b/reactos/apps/utils/net/arp/arp.c @@ -214,6 +214,7 @@ INT Addhost(PTCHAR pszInetAddr, PTCHAR pszEthAddr, PTCHAR pszIfAddr) } } else { Usage(); + return -1; } /* check MAC address */ @@ -255,6 +256,8 @@ INT Addhost(PTCHAR pszInetAddr, PTCHAR pszEthAddr, PTCHAR pszIfAddr) } printf("printing pIpAddrTable->table[0].dwIndex = %lx\n", pIpAddrTable->table[0].dwIndex); pAddHost->dwIndex = 4; + + free(pIpAddrTable); } /* Set MAC address to 6 bytes (typical) */ @@ -290,7 +293,6 @@ INT Addhost(PTCHAR pszInetAddr, PTCHAR pszEthAddr, PTCHAR pszIfAddr) return -1; } - free(pIpAddrTable); free(pAddHost); return 0;