summaryrefslogtreecommitdiff
path: root/rr.c
diff options
context:
space:
mode:
authorMatthijs Mekking <matje@NLnetLabs.nl>2010-08-26 11:35:23 +0200
committerMatthijs Mekking <matje@NLnetLabs.nl>2010-08-26 11:35:23 +0200
commite3048067c0d3a007e5cdc3468cb4660900a95b3c (patch)
tree5e605504171cbe0117995df1b261a89abe120249 /rr.c
parent1b28fa3433db34fe8191b3d5c051a7556a96b6af (diff)
downloadldns-e3048067c0d3a007e5cdc3468cb4660900a95b3c.tar.gz
free b64 too
Diffstat (limited to 'rr.c')
-rw-r--r--rr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/rr.c b/rr.c
index 834efb5c..307a4309 100644
--- a/rr.c
+++ b/rr.c
@@ -205,6 +205,7 @@ ldns_rr_new_frm_str_internal(ldns_rr **newrr, const char *str,
LDNS_FREE(rdata);
LDNS_FREE(rd);
LDNS_FREE(rd_buf);
+ LDNS_FREE(b64);
ldns_buffer_free(rr_buf);
ldns_rr_free(new);
return LDNS_STATUS_SYNTAX_CLASS_ERR;
@@ -230,6 +231,7 @@ ldns_rr_new_frm_str_internal(ldns_rr **newrr, const char *str,
LDNS_FREE(rdata);
LDNS_FREE(rd);
LDNS_FREE(rd_buf);
+ LDNS_FREE(b64);
ldns_buffer_free(rr_buf);
ldns_rr_free(new);
return LDNS_STATUS_SYNTAX_TYPE_ERR;
@@ -290,6 +292,7 @@ ldns_rr_new_frm_str_internal(ldns_rr **newrr, const char *str,
LDNS_FREE(rdata);
LDNS_FREE(rd);
LDNS_FREE(rd_buf);
+ LDNS_FREE(b64);
ldns_buffer_free(rr_buf);
ldns_rr_free(new);
return LDNS_STATUS_SYNTAX_ERR;
@@ -306,6 +309,7 @@ ldns_rr_new_frm_str_internal(ldns_rr **newrr, const char *str,
LDNS_FREE(rdata);
LDNS_FREE(rd);
LDNS_FREE(rd_buf);
+ LDNS_FREE(b64);
ldns_buffer_free(rr_buf);
ldns_rr_free(new);
return LDNS_STATUS_SYNTAX_ERR;