artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae38162
)
Balance a getifaddrs() with a freeifaddrs(); plugs a leak seen by
author
otto
<otto@openbsd.org>
Sun, 11 Dec 2022 10:47:37 +0000
(10:47 +0000)
committer
otto
<otto@openbsd.org>
Sun, 11 Dec 2022 10:47:37 +0000
(10:47 +0000)
florian@ and myself. ok florian@
sbin/dhcpleased/dhcpleased.c
patch
|
blob
|
history
diff --git
a/sbin/dhcpleased/dhcpleased.c
b/sbin/dhcpleased/dhcpleased.c
index
cc9d989
..
dc52c6d
100644
(file)
--- a/
sbin/dhcpleased/dhcpleased.c
+++ b/
sbin/dhcpleased/dhcpleased.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: dhcpleased.c,v 1.2
7 2022/11/27 15:19:38 kn Exp $
*/
+/* $OpenBSD: dhcpleased.c,v 1.2
8 2022/12/11 10:47:37 otto Exp $
*/
/*
* Copyright (c) 2017, 2021 Florian Obser <florian@openbsd.org>
@@
-805,6
+805,7
@@
configure_interface(struct imsg_configure_interface *imsg)
break;
}
}
+ freeifaddrs(ifap);
req_sin_addr->sin_addr = imsg->addr;
if (!found) {