Fix leak last commit introduced. Spotted by Sebastian Kapfer.
authorbeck <beck@openbsd.org>
Sun, 27 Apr 2014 15:59:25 +0000 (15:59 +0000)
committerbeck <beck@openbsd.org>
Sun, 27 Apr 2014 15:59:25 +0000 (15:59 +0000)
lib/libcrypto/x509v3/v3_info.c
lib/libssl/src/crypto/x509v3/v3_info.c

index 9ae1596..cb02160 100644 (file)
@@ -185,6 +185,7 @@ v2i_AUTHORITY_INFO_ACCESS(X509V3_EXT_METHOD *method, X509V3_CTX *ctx,
                        X509V3err(X509V3_F_V2I_AUTHORITY_INFO_ACCESS,
                            X509V3_R_BAD_OBJECT);
                        ERR_asprintf_error_data("value=%s", objtmp);
+                       free(objtmp);
                        goto err;
                }
                free(objtmp);
index 9ae1596..cb02160 100644 (file)
@@ -185,6 +185,7 @@ v2i_AUTHORITY_INFO_ACCESS(X509V3_EXT_METHOD *method, X509V3_CTX *ctx,
                        X509V3err(X509V3_F_V2I_AUTHORITY_INFO_ACCESS,
                            X509V3_R_BAD_OBJECT);
                        ERR_asprintf_error_data("value=%s", objtmp);
+                       free(objtmp);
                        goto err;
                }
                free(objtmp);