From: Roy Marples Date: Fri, 12 Oct 2012 12:30:22 +0000 (+0000) Subject: Remove needless malloc. X-Git-Tag: v5.99.3~58 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5ba29cbd2bb2fabf3f3ba53dcccc28178f18ebd2;p=thirdparty%2Fdhcpcd.git Remove needless malloc. --- diff --git a/dhcp6.c b/dhcp6.c index ae89d887..e03b77f9 100644 --- a/dhcp6.c +++ b/dhcp6.c @@ -597,7 +597,6 @@ dhcp6_handledata(_unused void *arg) free(state->old); state->old = state->new; state->old_len = state->new_len; - state->new = malloc(len); state->new = m; memcpy(m, r, len); state->new_len = len;