Fix some issues raise by coverity in the tests.
[openssl.git] / test / danetest.c
index 89d6fb88ec44f269e4cea7d2c857b9f4c6c2e5ff..a0fd0ce74b8a9ab8a929ca5d9adaa75495df9289 100644 (file)
@@ -133,6 +133,8 @@ static STACK_OF(X509) *load_chain(BIO *fp, int nelem)
         OPENSSL_free(name);
         OPENSSL_free(header);
         OPENSSL_free(data);
+        name = header = NULL;
+        data = NULL;
     }
 
     if (count == nelem) {