I haven’t really used Valgrind a lot yet, but if the usecases for this would be caught by using Valgrind or a similar tool than I don’t see a reason for this.
So I think we should try to use Valgrind (maybe even figure out some half or fully automated way to run it) instead of these manual attempts at asserting something like this.
I guess if this could be detected in form of some safety check in debug mode it would be even better, but I don’t know in which cases that is possible / planned.