Skip to content

Commit

Permalink
Fix one more memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
lazio579 committed Feb 13, 2019
1 parent 98d5e43 commit 1720f42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ EXECUTE_PROCESS(COMMAND git describe --tags
MESSAGE(STATUS "building from ${GIT_REVISION}")
SET(CPACK_PACKAGE_VERSION_MAJOR "1")
SET(CPACK_PACKAGE_VERSION_MINOR "1")
SET(CPACK_PACKAGE_VERSION_PATCH "0")
SET(CPACK_PACKAGE_VERSION_PATCH "1")
SET(CPACK_PACKAGE_VENDOR "MySQL")
SET(PACKAGE_NAME cetus)

Expand Down
3 changes: 3 additions & 0 deletions src/plugin-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,12 @@ do_read_auth(network_mysqld_con *con)
log_sql_connect(con, ip_err_msg);
g_free(ip_err_msg);
con->state = ST_SEND_ERROR;
g_strfreev(client_addr_arr);
return NETWORK_SOCKET_SUCCESS;
}

g_strfreev(client_addr_arr);

const char *client_charset = charset_get_name(auth->charset);
if (client_charset == NULL) {
client_charset = con->srv->default_charset;
Expand Down

0 comments on commit 1720f42

Please sign in to comment.