diff options
author | Tobias Brunner <tobias@strongswan.org> | 2016-09-13 14:12:29 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2016-09-20 15:36:14 +0200 |
commit | 3a25032c16353d4cf6673a074c2cfed74529b04c (patch) | |
tree | ac549c001585c03fea71d8418d87092dcf67daba | |
parent | 8c33a1897a8d8ef1f2712da1e33970b3244dc143 (diff) | |
download | strongswan-3a25032c16353d4cf6673a074c2cfed74529b04c.tar.bz2 strongswan-3a25032c16353d4cf6673a074c2cfed74529b04c.tar.xz |
unbound: Fix memory leak
-rw-r--r-- | src/libstrongswan/plugins/unbound/unbound_rr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/unbound/unbound_rr.c b/src/libstrongswan/plugins/unbound/unbound_rr.c index fc69eed00..91b5cdb33 100644 --- a/src/libstrongswan/plugins/unbound/unbound_rr.c +++ b/src/libstrongswan/plugins/unbound/unbound_rr.c @@ -154,11 +154,13 @@ unbound_rr_t *unbound_rr_create_frm_ldns_rr(ldns_rr *rr) if (status != LDNS_STATUS_OK) { DBG1(DBG_LIB, "failed to get the RDATA field of a DNS RR"); + ldns_buffer_free(buf); _destroy(this); return NULL; } this->rdata = ldns_buffer_export(buf); + ldns_buffer_free(buf); return &this->public; } |