summaryrefslogtreecommitdiff
path: root/lib/cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cache.c')
-rw-r--r--lib/cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cache.c b/lib/cache.c
index 8ba3d5b..36c45e1 100644
--- a/lib/cache.c
+++ b/lib/cache.c
@@ -736,7 +736,7 @@ static int cache_include(struct nl_cache *cache, struct nl_object *obj,
*/
if (nl_object_update(old, obj) == 0) {
cb(cache, old, NL_ACT_CHANGE, data);
- nl_object_put(obj);
+ nl_object_put(old);
return 0;
}