summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@mailme.dk>2013-01-12 00:15:56 +0100
committerEmil Renner Berthing <esmil@mailme.dk>2013-01-12 00:20:45 +0100
commitafaf7c661b955de75ac0112d17a93fddfb71dd3f (patch)
treee76470372f348e3250d32915d1537ea0d312bb3c
parent3650b953cf452493694e68bad592fd3ada371d74 (diff)
downloadlem-afaf7c661b955de75ac0112d17a93fddfb71dd3f.tar.gz
lem-afaf7c661b955de75ac0112d17a93fddfb71dd3f.tar.xz
lem-afaf7c661b955de75ac0112d17a93fddfb71dd3f.zip
io: fix memory leak in tcp_listen_reap()
-rw-r--r--lem/io/tcp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lem/io/tcp.c b/lem/io/tcp.c
index a819502..ee4c601 100644
--- a/lem/io/tcp.c
+++ b/lem/io/tcp.c
@@ -1,6 +1,6 @@
/*
* This file is part of LEM, a Lua Event Machine.
- * Copyright 2011-2012 Emil Renner Berthing
+ * Copyright 2011-2013 Emil Renner Berthing
*
* LEM is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
@@ -316,6 +316,7 @@ tcp_listen_reap(struct lem_async *a)
break;
}
lem_queue(T, 2);
+ free(g);
}
static int