Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
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.