free null cleanup finale
[openssl.git] / crypto / bio / bf_lbuf.c
index ef12820b507ef0b1ed51636e7bdb0ede966bec92..d7906b419cfdb66e73f8dfe7812a912aa868699c 100644 (file)
@@ -128,8 +128,7 @@ static int linebuffer_free(BIO *a)
     if (a == NULL)
         return (0);
     b = (BIO_LINEBUFFER_CTX *)a->ptr;
-    if (b->obuf != NULL)
-        OPENSSL_free(b->obuf);
+    OPENSSL_free(b->obuf);
     OPENSSL_free(a->ptr);
     a->ptr = NULL;
     a->init = 0;