summaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/knsupdate/knsupdate_exec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils/knsupdate/knsupdate_exec.c b/src/utils/knsupdate/knsupdate_exec.c
index d716ffb53..ae13db4c8 100644
--- a/src/utils/knsupdate/knsupdate_exec.c
+++ b/src/utils/knsupdate/knsupdate_exec.c
@@ -310,6 +310,7 @@ static int parse_partial_rr(zs_scanner_t *s, const char *lp, unsigned flags)
if (zs_set_input_string(s, rr, strlen(rr)) != 0 ||
zs_parse_all(s) != 0) {
ERR("invalid rdata (%s)", zs_strerror(s->error.code));
+ free(rr);
return KNOT_EPARSEFAIL;
}
free(rr);