If the message is ignored, the tlv_extra isn't freed. Fix this.
Signed-off-by: Michael Walle <[email protected]>
---
clock.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/clock.c b/clock.c
index 7bbb848..79ef917 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) {
--
2.11.0
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel