From: Roy Marples Date: Wed, 30 Jul 2008 11:11:08 +0000 (+0000) Subject: Plug a leak. X-Git-Tag: v4.0.2~111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb706afcf17bec9bb501cd0d01d60c274ad000ac;p=thirdparty%2Fdhcpcd.git Plug a leak. --- diff --git a/client.c b/client.c index 024ac3b6..d6111982 100644 --- a/client.c +++ b/client.c @@ -710,13 +710,12 @@ send_message(struct if_state *state, int type, const struct options *options) logger(LOG_ERR, "send_packet: %s", strerror(errno)); } else { len = make_udp_packet(&udp, (uint8_t *)dhcp, len, from, to); - free(dhcp); r = send_raw_packet(state->interface, ETHERTYPE_IP, udp, len); free(udp); if (r == -1) logger(LOG_ERR, "send_raw_packet: %s", strerror(errno)); } - + free(dhcp); /* Failed to send the packet? Return to the init state */ if (r == -1) { state->state = STATE_INIT;