pllua / pllua-deprecated

[DEPRECATED] This repository is no longer maintained. Please follow https://github.com/pllua/pllua
197 stars 16 forks source link

leak memory #39

Closed jarwin123 closed 7 years ago

jarwin123 commented 8 years ago

leak example:

create or replace test_lua_test(name text) RETURNS void AS $$ local cmd = 'select generate_series(1,150000)' local plan = server.prepare(cmd) local cur = plan:getcursor(nil, true) while true do local r = cur:fetch(1)
if r == nil then break end end cur:close() $$ language pllua

in this case, when i call SPI_execute('select test_lua_test('hell0')... ) in server programer pointend, the memory is leak.

jarwin123 commented 8 years ago

can you help me?

jarwin123 commented 8 years ago

have someone in here?

eugwne commented 8 years ago

What is the difference with #32 ?

jarwin123 commented 8 years ago

the same as #32

golgote commented 7 years ago

Closing duplicate #32