[PATCH lksctp-tools 5/5] fix memory leak in test_fragments

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Qiumiao Zhang <zhangqiumiao1@xxxxxxxxxx>
---
 src/func_tests/test_fragments.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/func_tests/test_fragments.c b/src/func_tests/test_fragments.c
index 359a78e..3071176 100644
--- a/src/func_tests/test_fragments.c
+++ b/src/func_tests/test_fragments.c
@@ -238,6 +238,7 @@ main(int argc, char *argv[])
 			sizeof(disable_frag));

 	msg_cnt = sizeof(msg_sizes) / sizeof(int);
+	free(msg_buf);

 	/* Send and receive the messages of different sizes specified in the
 	 * msg_sizes array in a loop.
--
2.27.0




[Index of Archives]     [Linux Networking Development]     [Linux OMAP]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     SCTP

  Powered by Linux