From: Xin Long <lucien.xin@gmail.com>
To: linux-sctp@vger.kernel.org
Subject: [PATCH lksctp-tools 7/9] testlib: fix covscan warnings
Date: Tue, 31 Jul 2018 08:53:15 +0000	[thread overview]
Message-ID: <e21e5ce66e17c751c03fac2e0f8d6ccbaf996a66.1533027042.git.lucien.xin@gmail.com> (raw)
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
                 reply	other threads:[~2018-07-31  8:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox
  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):
  git send-email \
    --in-reply-to=e21e5ce66e17c751c03fac2e0f8d6ccbaf996a66.1533027042.git.lucien.xin@gmail.com \
    --to=lucien.xin@gmail.com \
    --cc=linux-sctp@vger.kernel.org \
    /path/to/YOUR_REPLY
  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
  Be sure your reply has a Subject: header at the top and a blank line
  before the message body.
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).