1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-19 23:22:23 +03:00

ecpg: Fix rare memory leaks

found by Coverity
This commit is contained in:
Peter Eisentraut
2012-03-08 22:21:12 +02:00
parent d93f209f48
commit 8dd4d10d48
2 changed files with 6 additions and 0 deletions

View File

@@ -519,6 +519,10 @@ ECPGconnect(int lineno, int c, const char *name, const char *user, const char *p
ecpg_free(realname);
if (dbname)
ecpg_free(dbname);
if (conn_keywords)
ecpg_free(conn_keywords);
if (conn_values)
ecpg_free(conn_values);
free(this);
return false;
}