Commit af0b49fc authored by Michael Meskes's avatar Michael Meskes

Fix memory leak in ecpglib's connect function.

Patch by Michael Paquier
parent 2bed1cd7
......@@ -321,7 +321,10 @@ ECPGconnect(int lineno, int c, const char *name, const char *user, const char *p
}
if ((this = (struct connection *) ecpg_alloc(sizeof(struct connection), lineno)) == NULL)
{
ecpg_free(dbname);
return false;
}
if (dbname != NULL)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment