Commit 3bec23f
committed
don't use Perl_suspend_compcv as destructor directly
SAVEDESTRUCTOR_X needs a function whose type is 'void (pTHX_ void *)'
exactly, so introduce a little shim.
Should fix this ASan error:
scope.c:1543:13: runtime error: call to function Perl_suspend_compcv through pointer to incorrect function type 'void (*)(struct interpreter *, void *)'1 parent d7e7549 commit 3bec23f
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2963 | 2963 | | |
2964 | 2964 | | |
2965 | 2965 | | |
| 2966 | + | |
| 2967 | + | |
| 2968 | + | |
| 2969 | + | |
| 2970 | + | |
| 2971 | + | |
2966 | 2972 | | |
2967 | 2973 | | |
2968 | 2974 | | |
| |||
3001 | 3007 | | |
3002 | 3008 | | |
3003 | 3009 | | |
3004 | | - | |
| 3010 | + | |
3005 | 3011 | | |
3006 | 3012 | | |
3007 | 3013 | | |
| |||
0 commit comments