Fix some compilation issues.
Modified: trunk/reactos/apps/utils/net/arp/arp.c
_____
Modified: trunk/reactos/apps/utils/net/arp/arp.c
--- trunk/reactos/apps/utils/net/arp/arp.c 2005-07-06 08:43:36 UTC
(rev 16449)
+++ trunk/reactos/apps/utils/net/arp/arp.c 2005-07-06 09:27:08 UTC
(rev 16450)
@@ -214,6 +214,7 @@
}
} else {
Usage();
+ return -1;
}
/* check MAC address */
@@ -255,6 +256,8 @@
}
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 @@
return -1;
}
- free(pIpAddrTable);
free(pAddHost);
return 0;
Show replies by date