don't check if it's NULL before calling talloc_free(), that
function can take NULLs.
don't assign NULL to the variable just before exiting the function.
It does nothing
marker_subject = value;
goto marker;
}
- if (unescaped_value != NULL) {
- talloc_free(unescaped_value);
- unescaped_value = NULL;
- }
+ TALLOC_FREE(unescaped_value);
if (!map->rhs) {
cf_log_perr(cp, "Failed parsing RHS");
return 0;
error:
- if (unescaped_value != NULL) {
- talloc_free(unescaped_value);
- unescaped_value = NULL;
- }
+ talloc_free(unescaped_value);
talloc_free(map);
return -1;
}