diff options
author | Paul "LeoNerd" Evans <leonerd@leonerd.org.uk> | 2023-02-14 22:50:42 +0000 |
---|---|---|
committer | Paul Evans <leonerd@leonerd.org.uk> | 2023-02-17 21:06:16 +0000 |
commit | 04c0207ebb3cb7f894b5f5b6320970aabda477a9 (patch) | |
tree | eb8c26eb2998fb14f91d013b9a7a1618b3b8c7f6 /perly.h | |
parent | 7da1927c007a205d378f1913ba5dd4027799926e (diff) | |
download | perl-04c0207ebb3cb7f894b5f5b6320970aabda477a9.tar.gz |
Fix a bunch of memory leaks in feature 'class'
* Free the attrlist OP fragment when applying class or field attribute
* Free the OP_PADxV ops we only use to get the pad index out for
fieldvar declarations
* Add a refcount to the `struct padname_fieldinfo` to keep track of its
capture in inner closures so it can be freed at the right time
* Free the class-related fields out of HvAUX
* Free the actual ObjectFIELDS() array when destroying an object instance
* Dup fieldinfo->paramname at sv_dup() time / free it at free time
Diffstat (limited to 'perly.h')
-rw-r--r-- | perly.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -236,6 +236,6 @@ int yyparse (void); /* Generated from: - * c4b4e87c0539faad20b927f8b65030a63a6145426deafcd3a383c2b67d8c2cae perly.y + * 404f5c053415e3ead8d5b0e39c35188e47e522bbccd25374bdcf5128f1b93ccc perly.y * acf1cbfd2545faeaaa58b1cf0cf9d7f98b5be0752eb7a54528ef904a9e2e1ca7 regen_perly.pl * ex: set ro: */ |