summaryrefslogtreecommitdiffstats
path: root/src/host/layer23
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-12-11 15:47:30 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-12-11 15:47:30 +0100
commit950f7d15e8cd2a4981e9c87e425a3cc196167295 (patch)
tree015050443c000c69b6416f8129c82444b7ecdab0 /src/host/layer23
parent83d9dcc0170119cbab908b72128e0e7ee265c646 (diff)
layer23: Call talloc_free unconditionally
talloc_free will check for NULL and return -1. _talloc_free(void *pyr) { if (unlikely(ptr == NULL)) { return -1; } ...
Diffstat (limited to 'src/host/layer23')
-rw-r--r--src/host/layer23/src/mobile/main.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/host/layer23/src/mobile/main.c b/src/host/layer23/src/mobile/main.c
index 12140773..89c9b94b 100644
--- a/src/host/layer23/src/mobile/main.c
+++ b/src/host/layer23/src/mobile/main.c
@@ -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;