[Linuxptp-devel] [PATCH] port: Fix memory leaks.

2018-08-09 Thread Miroslav Lichvar
In port_management_fill_response() the TLV descriptor leaked when not responding. In port_open() the port would leak with the unsupported management clock type. Signed-off-by: Miroslav Lichvar --- port.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/port.c b/port.c index

[Linuxptp-devel] [PATCH] Fix -Wformat-overflow warnings.

2018-08-09 Thread Miroslav Lichvar
Two warnings were observed with gcc-8.1.1. Signed-off-by: Miroslav Lichvar --- phc2sys.c | 2 +- phc_ctl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/phc2sys.c b/phc2sys.c index 21cae75..15f8d75 100644 --- a/phc2sys.c +++ b/phc2sys.c @@ -138,7 +138,7 @@ static int run