]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Eliminate use after free warning
authorWillem Toorop <willem@nlnetlabs.nl>
Sat, 25 Jan 2025 22:23:29 +0000 (23:23 +0100)
committerWillem Toorop <willem@nlnetlabs.nl>
Sat, 25 Jan 2025 22:23:29 +0000 (23:23 +0100)
test/13-unit-tests-base.tpkg/13-unit-tests-base.c

index 74108a409009d4a71e30c1ce0144476aa7e5ae3d..5456480b489d6985fae1cafc77530b88203f9657 100644 (file)
@@ -587,6 +587,7 @@ main(void)
                result = EXIT_FAILURE;
        }
        free(data);
+       data = NULL;
 
        /* tests from josfessons draft */
        /* BASE64("") = "" */