summaryrefslogtreecommitdiffstats
path: root/crypto/x509/v3_sxnet.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/x509/v3_sxnet.c')
-rw-r--r--crypto/x509/v3_sxnet.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/x509/v3_sxnet.c b/crypto/x509/v3_sxnet.c
index 5ad1040019..d3eefccb8b 100644
--- a/crypto/x509/v3_sxnet.c
+++ b/crypto/x509/v3_sxnet.c
@@ -194,6 +194,7 @@ int SXNET_add_id_INTEGER(SXNET **psx, ASN1_INTEGER *zone, const char *user,
goto err;
if (!sk_SXNETID_push(sx->ids, id))
goto err;
+ ASN1_INTEGER_free(id->zone);
id->zone = zone;
*psx = sx;
return 1;