diff --git a/connection.c b/connection.c index 7837dbb..56e8957 100644 --- a/connection.c +++ b/connection.c @@ -1056,6 +1056,8 @@ static char CC_initial_log(ConnectionClass *self, const char *func) ci->drivers.extra_systable_prefixes, PRINT_NAME(ci->conn_settings), encoding ? encoding : ""); + if (encoding) + free(encoding); } if (self->status == CONN_DOWN) {