1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-25 21:42:33 +03:00

ECPG: Simplify free_variable()

Patch by Boszormenyi Zoltan <zb@cybertec.at>
This commit is contained in:
Michael Meskes 2013-11-26 17:15:44 +01:00
parent 1ec4c56e76
commit f641fc86fb

View File

@ -87,16 +87,11 @@ free_variable(struct variable * var)
{
struct variable *var_next;
if (var == NULL)
return;
var_next = var->next;
ecpg_free(var);
while (var_next)
while (var)
{
var = var_next;
var_next = var->next;
ecpg_free(var);
var = var_next;
}
}