Merge pull request #7453 from neosilky/coccinelle-fixes

Applied fixes from Coccinelle
This commit is contained in:
Lennart Poettering
2017-11-24 13:29:48 +01:00
committed by GitHub
5 changed files with 10 additions and 11 deletions
+1 -2
View File
@@ -2092,8 +2092,7 @@ int cg_get_keyed_attribute(const char *controller, const char *path, const char
for (i = 0; keys[i]; i++) {
if (!values[i]) {
for (i = 0; keys[i]; i++) {
free(values[i]);
values[i] = NULL;
values[i] = mfree(values[i]);
}
return -ENOENT;
}