Permalink
Browse files

Don't try to be smart for Buffer without allocated buffer in free_buf…

…fer.

git-svn-id: https://svn.parrot.org/parrot/branches/compact_pool_revamp@45806 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information...
1 parent 34894de commit aa4e90048fdb1b97f3642929a897842cc3c22c92 bacek committed Apr 19, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/gc/mark_sweep.c
View
@@ -708,6 +708,10 @@ free_buffer(SHIM_INTERP,
if (PObj_external_TEST(b))
return;
+ /* If there is no allocated buffer - bail out */
+ if (!Buffer_buflen(b))
+ return;
+
/* XXX Jarkko reported that on irix pool->mem_pool was NULL, which really
* shouldn't happen */
if (mem_pool) {

0 comments on commit aa4e900

Please sign in to comment.