--- libaitcfg/src/queue.c 2012/04/05 12:21:57 1.7.2.2 +++ libaitcfg/src/queue.c 2012/07/25 15:03:23 1.8.2.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: queue.c,v 1.7.2.2 2012/04/05 12:21:57 misho Exp $ +* $Id: queue.c,v 1.8.2.1 2012/07/25 15:03:23 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -135,7 +135,7 @@ cfg_unsetAttribute(cfg_root_t * __restrict cfg, const AIT_FREE_VAL(&av->cfg_val); AIT_FREE_VAL(&av->cfg_attr); AIT_FREE_VAL(&av->cfg_sec); - free(av); + io_free(av); return 1; } @@ -161,7 +161,7 @@ cfg_setAttribute(cfg_root_t * __restrict cfg, const ch /* adding new element */ section = _selectAttribute(cfg, csSec, NULL); - av = malloc(sizeof(struct tagCfg)); + av = io_malloc(sizeof(struct tagCfg)); if (!av) { LOGERR; return -1; @@ -248,6 +248,7 @@ cfg_loadAttribute(cfg_root_t * __restrict cfg, const c return -1; } + AIT_INIT_VAL(val); av = _selectAttribute(cfg, csSec, csAttr); if (!av) { /* not found item */