Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

leak memory #39

Closed
jarwin123 opened this issue Sep 7, 2016 · 5 comments
Closed

leak memory #39

jarwin123 opened this issue Sep 7, 2016 · 5 comments

Comments

@jarwin123
Copy link

jarwin123 commented Sep 7, 2016

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
Copy link
Author

can you help me?

@jarwin123
Copy link
Author

have someone in here?

@eugwne
Copy link
Member

eugwne commented Sep 26, 2016

What is the difference with #32 ?

@jarwin123
Copy link
Author

the same as #32

@golgote
Copy link
Member

golgote commented Oct 14, 2017

Closing duplicate #32

@golgote golgote closed this as completed Oct 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants