]> git.vpit.fr Git - perl/modules/Lexical-Types.git/blobdiff - ptable.h
Clean up map entries associated to uncatched OPs
[perl/modules/Lexical-Types.git] / ptable.h
index 07a755198ff6b762a04cbb89493d93b3140cb2f5..c694620cf669a8fe2e8442ebdc4dd39cbb2e71c5 100644 (file)
--- a/ptable.h
+++ b/ptable.h
@@ -1,4 +1,4 @@
-/* This file is part of the Lexical-Types Perl module.
+/* This file is part of the Lexical::Types Perl module.
  * See http://search.cpan.org/dist/Lexical-Types/ */
 
 /* This is a pointer table implementation essentially copied from the ptr_table
@@ -155,7 +155,7 @@ STATIC void PTABLE_PREFIX(_store)(pPTBL_ ptable * const t, const void * const ke
   void *oldval = ent->val;
   PTABLE_VAL_FREE(oldval);
   ent->val = val;
- } else {
+ } else if (val) {
   const UV i = PTABLE_HASH(key) & t->max;
   ent = PerlMemShared_malloc(sizeof *ent);
   ent->key  = key;