dect
/
libnl
Archived
13
0
Fork 0

Bug Fix: cache_include: Fix object ref release after successful object update

The current code does a rtnl_link_put on new object instead of
old object. This patch fixes it. None of the caches have support
for object update, so this should not have affected anyone yet.

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
This commit is contained in:
roopa 2012-12-12 21:48:30 -08:00 committed by Thomas Graf
parent 29b71371e7
commit 20a051237c
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}