Here the Valgrind memory report
srb2usedafterfreed.txt
And here the sample wad to quickly show the issue
ultimatemodedeathcrash.wad