diff --git a/Ping.cpp b/Ping.cpp index 07f2850..be1cf68 100644 --- a/Ping.cpp +++ b/Ping.cpp @@ -141,7 +141,7 @@ static err_t ping_send(int s, ip4_addr_t *addr, int size) { if ((err = sendto(s, iecho, ping_size, 0, (struct sockaddr*)&to, sizeof(to)))) { transmitted++; } - free(iecho) + free(iecho); return (err ? ERR_OK : ERR_VAL); }