Package: lua-dbi / 0.7.1-2

Metadata

Package Version Patches format
lua-dbi 0.7.1-2 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
upstream/616e2e26d1c4b779b6d7332308db39a1944556d7.patch | (download)

dbd/postgresql/statement.c | 7 6 + 1 - 0 !
1 file changed, 6 insertions(+), 1 deletion(-)

 [patch] fix memory leak in statement:execute by calling pqclear

There is a memory leak in statement:execute because the old result is not cleared. So the script keeps on hogging memory.
Check old result and if it is OK status then call PQclear before assigning new result to statement->result.

upstream/863cbf0f091ec301d7148c1175339b9714d4c3b7.patch | (download)

dbd/postgresql/statement.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 [patch] only deallocate statement if connection is non-null (fixes
 #51)


test.patch | (download)

test.lua | 12 12 + 0 - 0 !
1 file changed, 12 insertions(+)

 test

===================================================================