[Libreoffice-bugs] [Bug 119615] CRASH - closing table causes crash using mysql ODB with native connector connected to a mysql instance

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Aug 31 09:30:36 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=119615

--- Comment #10 from Julien Nabet <serval2412 at yahoo.fr> ---
(In reply to Noel Grandin from comment #9)
> @julien I agree, that commit is faulty, m_aFields should not have been
> converted to std::unique_ptr. Want to fix?

If it's just reverting m_aFields part of the patch, I'll be able to do this
when I come back to home after my day time job.

However, it seems we may have a memory leak.
According to https://mariadb.com/kb/en/library/mysql_free_result/, a call to
mysql_fetch_row implies a call to mysql_free_result and I'm not sure
"OPreparedResultSet::close()" method was called in the bt.
Should a call to this method in destructor could make it? (and we could keep
unique_ptr in the same time)?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180831/d0429116/attachment.html>


More information about the Libreoffice-bugs mailing list