From e14cc5025264be2b7df191de255d521dfeca05c0 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Mon, 9 Nov 2015 20:05:55 +0100 Subject: [PATCH] CID 22522, 22520 Resource leak helping coverity scan to understand this code --- src/kernel/item.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/kernel/item.c b/src/kernel/item.c index ca6c2f32d..1b312c655 100644 --- a/src/kernel/item.c +++ b/src/kernel/item.c @@ -187,6 +187,7 @@ resource_type *rt_get_or_create(const char *name) { else { rtype->_name = _strdup(name); rt_register(rtype); + return rt_find(name); } } return rtype;