free NULL cleanup
[openssl.git] / apps / sess_id.c
index 9400af964efd0efd0372f5be7ba13fd9e59dee8d..53ccbb35762333ac3ce5bae12ed2a11e7fa2b8b8 100644 (file)
@@ -237,8 +237,7 @@ int MAIN(int argc, char **argv)
     }
     ret = 0;
  end:
-    if (out != NULL)
-        BIO_free_all(out);
+    BIO_free_all(out);
     if (x != NULL)
         SSL_SESSION_free(x);
     apps_shutdown();
@@ -279,7 +278,6 @@ static SSL_SESSION *load_sess_id(char *infile, int format)
     }
 
  end:
-    if (in != NULL)
-        BIO_free(in);
+    BIO_free(in);
     return (x);
 }