From: Vivek Goel Date: October 26 2012 7:18am Subject: Memory leak in mysql c++ connector in threaded app List-Archive: http://lists.mysql.com/connector-cplusplus/42 Message-Id: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=14dae9d718164a2cfa04ccf12394 --14dae9d718164a2cfa04ccf12394 Content-Type: multipart/alternative; boundary=14dae9d718164a2cf404ccf12392 --14dae9d718164a2cf404ccf12392 Content-Type: text/plain; charset=ISO-8859-1 HI, I am using MySQL c++ connector. But it is leaking 192 bytes for every connection in multi-threaded app but It works perfectly in non-threaded app. What I am doing wrong ? Do I need to call some extra function in threaded env ? I am attaching sample source code and valgrind output. regards Vivek Goel --14dae9d718164a2cf404ccf12392 Content-Type: text/html; charset=ISO-8859-1 HI,
I am using MySQL c++ connector. But it is leaking 192 bytes for every connection in multi-threaded app but It works perfectly in non-threaded app.
What I am doing wrong ? Do I need to call some extra function in threaded env ?

I am attaching sample source code and valgrind output.

regards
Vivek Goel

--14dae9d718164a2cf404ccf12392-- --14dae9d718164a2cfa04ccf12394--