Skip to content

Commit 5f92561

Browse files
committed
IPv4LL: free on nodrop
1 parent 93305c2 commit 5f92561

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/ipv4ll.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ ipv4ll_drop(struct interface *ifp)
452452
ipv4ll_freearp(ifp);
453453

454454
if ((ifp->options->options & DHCPCD_NODROP) == DHCPCD_NODROP)
455-
return;
455+
goto free;
456456

457457
state = IPV4LL_STATE(ifp);
458458
if (state) {
@@ -483,6 +483,7 @@ ipv4ll_drop(struct interface *ifp)
483483
script_runreason(ifp, "IPV4LL");
484484
}
485485

486+
free:
486487
ipv4ll_free(ifp);
487488
dhcpcd_dropped(ifp);
488489
}

0 commit comments

Comments
 (0)