linux-sctp.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH lksctp-tools 7/9] testlib: fix covscan warnings
@ 2018-07-31  8:53 Xin Long
  0 siblings, 0 replies; only message in thread
From: Xin Long @ 2018-07-31  8:53 UTC (permalink / raw)
  To: linux-sctp

free the allocated memory 'found' in testlib/sctputil.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
---
 src/testlib/sctputil.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/testlib/sctputil.c b/src/testlib/sctputil.c
index 714d7a5..24f305a 100644
--- a/src/testlib/sctputil.c
+++ b/src/testlib/sctputil.c
@@ -412,5 +412,6 @@ int test_peer_addr(int sk, sctp_assoc_t asoc, sockaddr_storage_t *peers, int cou
 		}
 	}
 	sctp_freepaddrs(addrs);
+	free(found);
 	return 0;
 }
-- 
2.1.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-07-31  8:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-31  8:53 [PATCH lksctp-tools 7/9] testlib: fix covscan warnings Xin Long

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).