Checking for value != NULL is not sufficient to detect use after free errors. (cherry picked from commit b1086a5561)
b1086a5561