summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Jungel <tobias.jungel@bisdn.de>2018-04-17 13:49:23 +0200
committerThomas Haller <thaller@redhat.com>2018-06-25 13:57:34 +0200
commit250a7c9ae91a726dfe33174f5281505add5cdbaa (patch)
treef259fc4b7a9e6c5cccac49f99f685444c049e217
parent857961ac0261852129c511a8e846d28df7b832d7 (diff)
downloadlibnl-250a7c9ae91a726dfe33174f5281505add5cdbaa.tar.gz
nl-neigh-list: free allocated items
-rw-r--r--src/nl-neigh-list.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nl-neigh-list.c b/src/nl-neigh-list.c
index ba4ade8b..1581e174 100644
--- a/src/nl-neigh-list.c
+++ b/src/nl-neigh-list.c
@@ -87,5 +87,10 @@ int main(int argc, char *argv[])
nl_cache_dump_filter(neigh_cache, &params, OBJ_CAST(neigh));
+ rtnl_neigh_put(neigh);
+ nl_cache_put(neigh_cache);
+ nl_cache_put(link_cache);
+ nl_socket_free(sock);
+
return 0;
}