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 7ecdf2acd788d0be2edb47c76f3d0e187a9ea1b9..38b34fde96b34538846c84d7b5874769e6a95f2e 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