Branch: Tag:

2007-04-06

2007-04-06 15:56:23 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed type leak.

Rev: src/pike_types.c:1.283

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: pike_types.c,v 1.282 2007/04/06 11:16:33 grubba Exp $ + || $Id: pike_types.c,v 1.283 2007/04/06 15:56:23 grubba Exp $   */      #include "global.h"
2715:   #endif    a_markers[m] = NULL;    res = low_match_types(t, b, flags); +  if (a_markers[m]) { +  struct pike_type *tmp; +  a_markers[m] = or_pike_types(tmp = a_markers[m], t, 0); +  free_type(tmp); +  free_type(t); +  } else {    a_markers[m] = t; -  +  }    return res;    }    else
2805:   #endif    b_markers[m] = NULL;    res = low_match_types(a, t, flags); +  if (b_markers[m]) { +  struct pike_type *tmp; +  b_markers[m] = or_pike_types(tmp = b_markers[m], t, 0); +  free_type(tmp); +  free_type(t); +  } else {    b_markers[m] = t; -  +  }    return res;    }    else