[PATCH lksctp-tools 7/9] testlib: fix covscan warnings

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

 



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

Signed-off-by: Xin Long <lucien.xin@xxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe linux-sctp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



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

  Powered by Linux