layer23: Call talloc_free unconditionally

talloc_free will check for NULL and return -1.

_talloc_free(void *pyr)
{
        if (unlikely(ptr == NULL)) {
                return -1;
        }
...
This commit is contained in:
Holger Hans Peter Freyther 2011-12-11 15:47:30 +01:00
parent 83d9dcc017
commit 950f7d15e8
1 changed files with 2 additions and 5 deletions

View File

@ -256,11 +256,8 @@ int main(int argc, char **argv)
l23_app_exit();
if (config_file)
talloc_free(config_file);
if (config_dir)
talloc_free(config_dir);
talloc_free(config_file);
talloc_free(config_dir);
talloc_report_full(l23_ctx, stderr);
return 0;