summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ospf6d/rde.c
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2010-07-01 21:19:57 +0000
committerbluhm <bluhm@openbsd.org>2010-07-01 21:19:57 +0000
commit8f02e9bcc397c96920c1d96f73cd8c47acdfc70d (patch)
treebef6fc17a74c2ccb4e3e51f0f968f343caad0e53 /usr.sbin/ospf6d/rde.c
parentEnsure that IPIs have priority and are run first to avoid deadlock. This (diff)
downloadwireguard-openbsd-8f02e9bcc397c96920c1d96f73cd8c47acdfc70d.tar.xz
wireguard-openbsd-8f02e9bcc397c96920c1d96f73cd8c47acdfc70d.zip
Fix memory leak by adding a missing free(lsa).
ok claudio@
Diffstat (limited to 'usr.sbin/ospf6d/rde.c')
-rw-r--r--usr.sbin/ospf6d/rde.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/ospf6d/rde.c b/usr.sbin/ospf6d/rde.c
index a9ca048a825..fd144ea1347 100644
--- a/usr.sbin/ospf6d/rde.c
+++ b/usr.sbin/ospf6d/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.44 2010/07/01 19:47:04 bluhm Exp $ */
+/* $OpenBSD: rde.c,v 1.45 2010/07/01 21:19:57 bluhm Exp $ */
/*
* Copyright (c) 2004, 2005 Claudio Jeker <claudio@openbsd.org>
@@ -688,6 +688,8 @@ rde_dispatch_parent(int fd, short event, void *bula)
*/
if (v)
lsa_merge(nbrself, lsa, v);
+ else
+ free(lsa);
}
break;
case IMSG_KROUTE_GET: