[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How far should one go preventing potential memory leaks?
- From: tomas <tomas@...>
- Date: Mon, 09 May 2016 08:54:37 -0300
Hi Marc
We managed the same kind of problem in LuaSQL Postgres driver by
using a Lua buffer. Take a look at the implementation of conn_escape
function at:
https://github.com/keplerproject/luasql/blob/master/src/ls_postgres.c
Section 28.2 of Programming in Lua - 3rd edition explain a simple use
of the buffer API.
Regards,
Tomás
On 2016-05-09 06:03, Marc Balmer wrote:
FWIW, the discussion that triggered this message is on github:
https://github.com/arcapos/luapgsql/issues/26 [1]
Links:
------
[1] https://github.com/arcapos/luapgsql/issues/26