Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dblib: fixed incorrect error handling #634

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

ProjectMutilation
Copy link
Contributor

No description provided.

@@ -725,6 +725,7 @@ dblogin(void)
/* set default values for loginrec */
if (!tds_set_library(loginrec->tds_login, "DB-Library")) {
dbperror(NULL, SYBEMEM, errno);
free(loginrec->tds_login);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think tds_free_login would be better here, more symmetrical.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, fixed

Signed-off-by: Maksim Korotkov <m.korotkov@postgrespro.ru>
@freddy77 freddy77 merged commit 8345984 into FreeTDS:master Feb 6, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants