recvbuf and sendbuf are never freed, free them to avoid memory holes.

Signed-off-by: Sascha Hauer <[email protected]>
---
 lib/ratp.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/ratp.c b/lib/ratp.c
index 8167c5bd4c..1901cc8ea8 100644
--- a/lib/ratp.c
+++ b/lib/ratp.c
@@ -1714,6 +1714,8 @@ void ratp_close(struct ratp *ratp)
        list_for_each_entry_safe(msg, tmp, &ri->sendmsg, list)
                ratp_msg_done(ri, msg, -ECONNRESET);
 
+       free(ri->recvbuf);
+       free(ri->sendbuf);
        free(ri);
        ratp->internal = NULL;
 
-- 
2.26.2


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to