summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ldpd/labelmapping.c
diff options
context:
space:
mode:
authorrenato <renato@openbsd.org>2016-09-02 17:16:24 +0000
committerrenato <renato@openbsd.org>2016-09-02 17:16:24 +0000
commit2163d027029b1c82214a9fb0e08a4d8f6e04c16a (patch)
tree73c75aae9946d933bd54d1c215605e9edb770e8e /usr.sbin/ldpd/labelmapping.c
parentMake tcpdump print details about association requests in verbose mode. (diff)
downloadwireguard-openbsd-2163d027029b1c82214a9fb0e08a4d8f6e04c16a.tar.xz
wireguard-openbsd-2163d027029b1c82214a9fb0e08a4d8f6e04c16a.zip
Fix small memleak on error path.
Diffstat (limited to 'usr.sbin/ldpd/labelmapping.c')
-rw-r--r--usr.sbin/ldpd/labelmapping.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ldpd/labelmapping.c b/usr.sbin/ldpd/labelmapping.c
index 4e70f8f3592..2d2389c111f 100644
--- a/usr.sbin/ldpd/labelmapping.c
+++ b/usr.sbin/ldpd/labelmapping.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: labelmapping.c,v 1.60 2016/09/02 17:08:02 renato Exp $ */
+/* $OpenBSD: labelmapping.c,v 1.61 2016/09/02 17:16:24 renato Exp $ */
/*
* Copyright (c) 2014, 2015 Renato Westphal <renato@openbsd.org>
@@ -123,6 +123,7 @@ send_labelmessage(struct nbr *nbr, uint16_t type, struct mapping_head *mh)
me->map.st.msg_id, me->map.st.msg_type);
if (err) {
ibuf_free(buf);
+ mapping_list_clr(mh);
return;
}