Diff for /libelwix/src/vars.c between versions 1.5.4.1 and 1.7

version 1.5.4.1, 2013/11/14 13:58:12 version 1.7, 2014/01/29 14:16:54
Line 12  terms: Line 12  terms:
 All of the documentation and software included in the ELWIX and AITNET  All of the documentation and software included in the ELWIX and AITNET
 Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>  Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>
   
Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013Copyright 2004 - 2014
         by Michael Pounov <misho@elwix.org>.  All rights reserved.          by Michael Pounov <misho@elwix.org>.  All rights reserved.
   
 Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
Line 417  ait_freeVars(array_t ** __restrict vars) Line 417  ait_freeVars(array_t ** __restrict vars)
   
         for (i = 0; i < array_Size(*vars); i++)          for (i = 0; i < array_Size(*vars); i++)
                 if ((v = array(*vars, i, ait_val_t*))) {                  if ((v = array(*vars, i, ait_val_t*))) {
                         AIT_FREE_VAL(v);  
                         /* free memory if isn't zero copy */                          /* free memory if isn't zero copy */
                        if (!AIT_IN(v) && (*vars)->arr_data[i]) {                        if (!AIT_IN(v)) {
                                e_free((*vars)->arr_data[i]);                                AIT_FREE_VAL(v);
                                (*vars)->arr_data[i] = NULL;                                if ((*vars)->arr_data[i])
                        }                                        e_free((*vars)->arr_data[i]);
                         } else
                                 AIT_FREE_VAL(v);
                         (*vars)->arr_data[i] = NULL;
                 }                  }
         (*vars)->arr_last = -1;          (*vars)->arr_last = -1;
   

Removed from v.1.5.4.1  
changed lines
  Added in v.1.7


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>