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 <michael@walle.cc>
This commit is contained in:
parent
6ba73d18b1
commit
763a7ecdb2
1
clock.c
1
clock.c
@ -440,6 +440,7 @@ static int clock_management_fill_response(struct clock *c, struct port *p,
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
/* The caller should *not* respond to this message. */
|
/* The caller should *not* respond to this message. */
|
||||||
|
tlv_extra_recycle(extra);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (datalen % 2) {
|
if (datalen % 2) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user