arcapos / luapgsql

Lua binding for PostgreSQL
108 stars 24 forks source link

lo_open can leak an fd #33

Closed daurnimator closed 8 years ago

daurnimator commented 8 years ago

Allocate the userdata (and attach metatable) upfront before calling lo_open.

Remember to move up the argument checks to before creating the userdata.

mbalmer commented 8 years ago

Fixed in 920cf7047ce0cdcb09cdebc2156d412d0ef1717f

daurnimator commented 8 years ago

Thanks!