Skip to content

Commit

Permalink
Fix auth_msg memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
jesperpedersen committed Nov 29, 2021
1 parent 54d0b35 commit e92efff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libpgagroal/security.c
Original file line number Diff line number Diff line change
Expand Up @@ -1573,6 +1573,8 @@ use_unpooled_connection(struct message* request_msg, SSL* c_ssl, int client_fd,

pgagroal_log_trace("authenticate: has_security %d", config->connections[slot].has_security);

pgagroal_free_copy_message(auth_msg);

return AUTH_SUCCESS;

bad_password:
Expand Down

0 comments on commit e92efff

Please sign in to comment.