flybass / luamongo

Automatically exported from code.google.com/p/luamongo
0 stars 0 forks source link

Memory leak in lua_to_bson #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run your app under valgrind.
2. In valgrind output you would see that memory is "definitely" leaked in 
lua_to_bson() function.

What version of the product are you using? On what operating system?
Linux,

Please provide any additional information below.
In lua_to_bson() and lua_append_bosn() BSONObjBuilder is created on heap, with 
'new', but never released.

Original issue reported on code.google.com by dushan01...@gtempaccount.com on 23 Jun 2010 at 2:48

GoogleCodeExporter commented 8 years ago

Original comment by nr...@ii.net on 13 Jul 2010 at 4:15

GoogleCodeExporter commented 8 years ago
Hi,

I've committed a new version of utils.cpp to SVN which should fix the memory 
leaks in lua_to_bson() and lua_append_bson()

Original comment by nr...@ii.net on 13 Jul 2010 at 1:25