libs/lucid: fix process function leak (#285)
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 11 Aug 2011 23:23:11 +0000 (23:23 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 11 Aug 2011 23:23:11 +0000 (23:23 +0000)
libs/lucid/luasrc/lucid.lua

index 7ecdf2a..38b34fd 100644 (file)
@@ -150,6 +150,7 @@ function run()
                                if tpids[pid] ~= true then
                                        tpids[pid](pid, stat, code)
                                end
+                               tpids[pid] = nil
                        end
                        pid, stat, code = nixio.wait(-1, "nohang")
                end