petdance/scratch — Issue #659: Correct destruction of PackFile objects
Author: petdance
Created: 2011-11-14 06:01:29+00:00
State: open
Labels: bug, Pri-normal, Sev-medium

Originally opened as http://rt.perl.org/rt3/Ticket/Display.html?id=46687
```
In src/pmc/eval.pmc:thaw() there is the todo item (with some context):

/*
* XXX this isn't ok - it seems that the packfile
* gets attached to interp->code and is
* destroyed again during interpreter destruction
*/
/* PackFile_destroy(INTERP, pf); */

This issue needs correcting such that the PackFile object is cleanly
destroyed.
}}}

jonathan:
{{{
This problem will go away once packfiles are garbage collectable, as
specified in the bytecode PDD
```

Originally http://trac.parrot.org/parrot/ticket/1292