Replace free and return NULL with return mfree

This commit is contained in:
Daniel Lockyer
2017-11-24 10:31:49 +00:00
parent 71050acb68
commit 5fecf46d76
10 changed files with 10 additions and 22 deletions
+1 -2
View File
@@ -78,8 +78,7 @@ Condition* condition_new(ConditionType type, const char *parameter, bool trigger
r = free_and_strdup(&c->parameter, parameter);
if (r < 0) {
free(c);
return NULL;
return mfree(c);
}
return c;