diff options
author | Phil Sutter <phil@nwl.cc> | 2019-02-26 22:13:41 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-02-27 11:25:14 +0100 |
commit | b7e80ce0784c125841b5528fec40e28c9b7e49ae (patch) | |
tree | 2b67f288ae226c1272634e87784635c833cc848c /doc | |
parent | 1acebd57216e32d16ebb5684a6b2219e888997c3 (diff) |
json: Fix memleaks in echo support
When extracting netlink message data for populating JSON objects with
handles, allocated nftnl objects were not freed. Though since freeing
these objects also frees retrieved string attributes, copy them using
strdupa() which takes care of memory deallocation upon function return.
This is ideal since these strings are used only to find the right JSON
object to insert the handle into.
Fixes: bb32d8db9a125 ("JSON: Add support for echo option")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions