Join GitHub today
Fix use after free error. #45
When my_login fails the code tries to call mysql_errno on the mysql connection. However my_login has already free'd that connection variable, therefore causing a use-after-free error.
This patch changes that so that the free happens after the call to the error functions.
This was found with the help of Address Sanitizer.