pike.git/
src/
pike_types.c
Branch:
Tag:
Non-build tags
All tags
No tags
2007-04-06
2007-04-06 15:56:23 by Henrik Grubbström (Grubba) <grubba@grubba.org>
64d8a6de5008a3daf8ce2fd5a0e1bcdc01df4ae9 (
21
lines) (+
18
/-
3
)
[
Show
|
Annotate
]
Branch:
7.9
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