2007-03-29
2007-03-29 13:38:38 by Marcus Comstedt <marcus@mc.pp.se>
-
f88e29aa02c13e9ea4a2a7e11863b5656be67ca3
(5 lines)
(+3/-2)
[
Show
| Annotate
]
Branch: 7.9
Actually, NOT_SHARED strings _should_ have next == -1...
Rev: src/stralloc.c:1.212
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: stralloc.c,v 1.211 2006/07/05 02:22:21 mast Exp $
+ || $Id: stralloc.c,v 1.212 2007/03/29 13:38:38 marcus Exp $
*/
#include "global.h"
1044: Inside #if defined(PIKE_DEBUG)
#endif
Pike_fatal("Freeing string with %d references.\n", s->refs);
}
- if(d_flag > 2)
+ if(d_flag > 2 && !(s->flags & STRING_NOT_SHARED))
{
if(s->next == (struct pike_string *)(ptrdiff_t)-1)
Pike_fatal("Freeing shared string again!\n");