Subject: | Memory leak from SSL_CTX_set_tlsext_status_cb |
After a lot of memory debugging (*) I have found the culprit of another memory leak.
Per iteration of my program, the following line leaks three `undef` SVs, from the call to newSVsv():
SSLeay.xs line 6453:
cb_data_advanced_put(ctx, "tlsext_status_cb!!data", newSVsv(data));
this appears in the SSL_CTX_set_tlsext_status_cb XS function.
*: I can explain my methodology if it'll help, but it involves custom-edited perl source code, libgcc trickery, and gdb in order to print the C-level stacktrace each time newSVsv is called, and then lots of file analysis around Devel::MAT to find SV addresses of leaked SVs to pair up with the above logs. It's a long tale ;)
--
Paul Evans