free() can handle NULL just fine so skip the check

Fixes #117
This commit is contained in:
Wim Taymans 2018-12-19 17:47:25 +01:00
parent b6db6e2130
commit 0984096089
13 changed files with 63 additions and 99 deletions

View file

@ -95,7 +95,7 @@ void pw_daemon_config_free(struct pw_daemon_config *config)
struct pw_command *cmd, *tmp;
spa_list_for_each_safe(cmd, tmp, &config->commands, link)
pw_command_free(cmd);
pw_command_free(cmd);
free(config);
}