Line 0
Link Here
|
|
|
1 |
--- src/stralloc.c.old Fri Nov 18 11:06:05 2005 |
2 |
+++ src/stralloc.c Fri Nov 18 11:06:10 2005 |
3 |
@@ -2,7 +2,7 @@ |
4 |
|| This file is part of Pike. For copyright information see COPYRIGHT. |
5 |
|| Pike is distributed under GPL, LGPL and MPL. See the file COPYING |
6 |
|| for more information. |
7 |
-|| $Id: stralloc.c,v 1.169 2005/01/19 13:06:57 grubba Exp $ |
8 |
+|| $Id: stralloc.c,v 1.170 2005/11/18 01:14:22 nilsson Exp $ |
9 |
*/ |
10 |
|
11 |
#include "global.h" |
12 |
@@ -24,7 +24,7 @@ |
13 |
#include <ctype.h> |
14 |
#include <math.h> |
15 |
|
16 |
-RCSID("$Id: stralloc.c,v 1.169 2005/01/19 13:06:57 grubba Exp $"); |
17 |
+RCSID("$Id: stralloc.c,v 1.170 2005/11/18 01:14:22 nilsson Exp $"); |
18 |
|
19 |
/* #define STRALLOC_USE_PRIMES */ |
20 |
|
21 |
@@ -1596,6 +1596,7 @@ |
22 |
add_ref(a = old); |
23 |
} else { |
24 |
link_pike_string(a, a->hval); |
25 |
+ add_ref(a); |
26 |
} |
27 |
return a; |
28 |
}else{ |