Attempting to fix false positive in Valgrind