diff options
author | Renato Westphal <renato@cvs.openbsd.org> | 2016-09-02 17:16:25 +0000 |
---|---|---|
committer | Renato Westphal <renato@cvs.openbsd.org> | 2016-09-02 17:16:25 +0000 |
commit | 12b83deab5c4a724eed7ee2a539c33335f431a6a (patch) | |
tree | c71d27deb1d7c7649103b7f40ffcc13c3807ae4d | |
parent | 9bd88d37c2a84442ee846bb272122ef32ebf27a4 (diff) |
Fix small memleak on error path.
-rw-r--r-- | usr.sbin/ldpd/labelmapping.c | 3 |
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; } |