summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-05-19 14:18:42 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-05-20 10:40:56 +0200
commit325608a96cec194d04b379ded8afdce41d525658 (patch)
treeeeca15317e092e255fea7cf0d81849bd973f5872 /lib
parentc10b20dc83ac25b1d81c39eaad4529d9911813b1 (diff)
downloadbarebox-325608a96cec194d04b379ded8afdce41d525658.tar.gz
barebox-325608a96cec194d04b379ded8afdce41d525658.tar.xz
ratp: Free buffers
recvbuf and sendbuf are never freed, free them to avoid memory holes. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/ratp.c2
1 files changed, 2 insertions, 0 deletions
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;