ecpg: Fix rare memory leaks

found by Coverity
REL9_1_STABLE
Peter Eisentraut 14 years ago
parent 46c9f5d6f0
commit 6f59d42b94
  1. 2
      src/interfaces/ecpg/ecpglib/execute.c

@ -1776,6 +1776,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);
}
@ -1807,6 +1808,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…
Cancel
Save