]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Remove needless malloc.
authorRoy Marples <roy@marples.name>
Fri, 12 Oct 2012 12:30:22 +0000 (12:30 +0000)
committerRoy Marples <roy@marples.name>
Fri, 12 Oct 2012 12:30:22 +0000 (12:30 +0000)
dhcp6.c

diff --git a/dhcp6.c b/dhcp6.c
index ae89d8878c35954671b1a5f0b7f0f60f11619139..e03b77f93b6bd23945df55e5b6a57767b970066e 100644 (file)
--- 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;