fix memory leak in ksLookupByName
@@ -2746,8 +2746,8 @@ Key * ksLookupByName (KeySet * ks, const char * name, elektraLookupFlags options
}
found = ksLookup (ks, &key, options);
- keyNameDel (key.keyName, true);
- keyDataDel (key.keyData, true);
+ keyNameRefDecAndDel(key.keyName, true);
+ keyDataRefDecAndDel(key.keyData, true);
ksDel (key.meta); // sometimes owner is set
return found;
}
