Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash if a Mysql2::Client object is allocated but never connected (…
…#1101) Reproducible with any older version of the mysql2 gem: ruby -r mysql2 -I lib -e 'Mysql2::Client.allocate.close' Before this fix, the line above would crash out with a memory error: malloc: *** error for object 0x...: pointer being freed was not allocated malloc: *** set a breakpoint in malloc_error_break to debug Abort trap: 6
- Loading branch information