--- libaitio/src/Attic/vars.c 2011/12/13 10:40:05 1.3.2.1 +++ libaitio/src/Attic/vars.c 2012/02/02 21:32:42 1.4 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: vars.c,v 1.3.2.1 2011/12/13 10:40:05 misho Exp $ +* $Id: vars.c,v 1.4 2012/02/02 21:32:42 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -515,11 +515,11 @@ io_allocVar(void) * return: none */ inline void -io_freeVar(ait_val_t ** __restrict val) +io_freeVar(ait_val_t * __restrict val) { - if (val && *val) { - AIT_FREE_VAL(*val); - free(*val); - *val = NULL; + if (val) { + AIT_FREE_VAL(val); + free(val); + val = NULL; } }