From 763a7ecdb242faf5e1eeef91ee52249cd6efdff6 Mon Sep 17 00:00:00 2001 From: Michael Walle Date: Tue, 26 Jun 2018 11:55:22 +0200 Subject: [PATCH] clock: Fix memleak in clock_management_fill_response() If the message is ignored, the tlv_extra isn't freed. Fix this. Signed-off-by: Michael Walle --- clock.c | 1 + 1 file changed, 1 insertion(+) diff --git a/clock.c b/clock.c index c0d73f0..2400b2f 100644 --- a/clock.c +++ b/clock.c @@ -440,6 +440,7 @@ static int clock_management_fill_response(struct clock *c, struct port *p, break; default: /* The caller should *not* respond to this message. */ + tlv_extra_recycle(extra); return 0; } if (datalen % 2) {