All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sctp_xconnect: memory leak when malloc big buffer
@ 2013-01-11  7:22 Fan Du
  2013-01-11 13:48 ` Neil Horman
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Fan Du @ 2013-01-11  7:22 UTC (permalink / raw)
  To: linux-sctp

CLIENT repeatly call process_ready_sockets, which malloc without free,
so sctp_xconnect exit unexpectly.

Signed-off-by: Fan Du <fan.du@windriver.com>
---
 apps/sctp_xconnect.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/apps/sctp_xconnect.c b/apps/sctp_xconnect.c
index 5874c33..4e33040 100644
--- a/apps/sctp_xconnect.c
+++ b/apps/sctp_xconnect.c
@@ -573,6 +573,7 @@ void process_ready_sockets(int client_socket[], int assoc_num, fd_set *rfds) {
 			}
 		}
 	}
+	free(big_buffer); 
 }
 
 int main(int argc, char *argv[]) {
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-01-16  1:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-11  7:22 [PATCH] sctp_xconnect: memory leak when malloc big buffer Fan Du
2013-01-11 13:48 ` Neil Horman
2013-01-14  2:37 ` Fan Du
2013-01-14  2:40 ` Fan Du
2013-01-14  8:40 ` Daniel Borkmann
2013-01-14  9:45 ` Fan Du
2013-01-14 14:16 ` Neil Horman
2013-01-15  1:28 ` Fan Du
2013-01-15 12:42 ` Neil Horman
2013-01-16  1:13 ` Fan Du

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.