diff options
| author | Peter Eisentraut <peter_e@gmx.net> | 2012-03-08 22:21:12 +0200 |
|---|---|---|
| committer | Peter Eisentraut <peter_e@gmx.net> | 2012-03-11 01:01:48 +0200 |
| commit | b108a77505f5a3b21c756d47ffa3c93b0d6166b7 (patch) | |
| tree | 8a5715fe184ccc4418420f540c65d12f97c1db32 /src | |
| parent | ebe608915cf9b6689b6dfcb92ddb31c8da765670 (diff) | |
ecpg: Fix rare memory leaks
found by Coverity
Diffstat (limited to 'src')
| -rw-r--r-- | src/interfaces/ecpg/ecpglib/execute.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/interfaces/ecpg/ecpglib/execute.c b/src/interfaces/ecpg/ecpglib/execute.c index 1e11209890c..8ad671e70a0 100644 --- a/src/interfaces/ecpg/ecpglib/execute.c +++ b/src/interfaces/ecpg/ecpglib/execute.c @@ -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); } |
