Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[PMC] Fixed a memory leak in P6LowLevelSig PMC's destroy. Note that the
allocation in the allocate_signature dynop should move into the init_int
VTABLE, to make such leaks easier to track.
  • Loading branch information
chromatic committed Mar 25, 2010
1 parent 626ee20 commit 5ab33a1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pmc/p6lowlevelsig.pmc
@@ -1,6 +1,6 @@
/*
$Id$
Copyright (C) 2009, The Perl Foundation.
Copyright (C) 2009-2010, The Perl Foundation.

=head1 NAME

Expand Down Expand Up @@ -95,6 +95,9 @@ Frees the memory associated with this PMC's underlying storage.
elements[i] = NULL;
}

if (elements)
mem_sys_free(elements);

/* Now free underlying struct. */
mem_sys_free(PMC_data(SELF));
PMC_data(SELF) = NULL;
Expand Down

0 comments on commit 5ab33a1

Please sign in to comment.