mirror of
https://github.com/postgres/postgres.git
synced 2026-07-16 13:12:58 -04:00
ecpg: Fix rare memory leaks
found by Coverity
This commit is contained in:
parent
ebe608915c
commit
b108a77505
1 changed files with 2 additions and 0 deletions
|
|
@ -1777,6 +1777,7 @@ ECPGdo(const int lineno, const int compat, const int force_indicator, const char
|
|||
{
|
||||
setlocale(LC_NUMERIC, oldlocale);
|
||||
ecpg_free(oldlocale);
|
||||
free_statement(stmt);
|
||||
va_end(args);
|
||||
return (false);
|
||||
}
|
||||
|
|
@ -1808,6 +1809,7 @@ ECPGdo(const int lineno, const int compat, const int force_indicator, const char
|
|||
ecpg_raise(lineno, ECPG_INVALID_STMT, ECPG_SQLSTATE_INVALID_SQL_STATEMENT_NAME, stmt->command);
|
||||
setlocale(LC_NUMERIC, oldlocale);
|
||||
ecpg_free(oldlocale);
|
||||
free_statement(stmt);
|
||||
va_end(args);
|
||||
return (false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue