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:
parent
1ec4c56e76
commit
f641fc86fb
@ -87,16 +87,11 @@ free_variable(struct variable * var)
|
|||||||
{
|
{
|
||||||
struct variable *var_next;
|
struct variable *var_next;
|
||||||
|
|
||||||
if (var == NULL)
|
while (var)
|
||||||
return;
|
|
||||||
var_next = var->next;
|
|
||||||
ecpg_free(var);
|
|
||||||
|
|
||||||
while (var_next)
|
|
||||||
{
|
{
|
||||||
var = var_next;
|
|
||||||
var_next = var->next;
|
var_next = var->next;
|
||||||
ecpg_free(var);
|
ecpg_free(var);
|
||||||
|
var = var_next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user