summaryrefslogtreecommitdiff
path: root/src/modules/rkt
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/rkt')
-rw-r--r--src/modules/rkt/rkt.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/modules/rkt/rkt.c b/src/modules/rkt/rkt.c
index 2e8e696..8790f53 100644
--- a/src/modules/rkt/rkt.c
+++ b/src/modules/rkt/rkt.c
@@ -387,15 +387,13 @@ static void rkt_setup_free(til_setup_t *setup)
{
rkt_setup_t *s = (rkt_setup_t *)setup;
- if (s) {
- for (size_t i = 0; i < s->n_scenes; i++)
- til_setup_free(s->scenes[i].setup);
-
- free((void *)s->base);
- free((void *)s->host);
- free((void *)s->scener_address);
- free(setup);
- }
+ for (size_t i = 0; i < s->n_scenes; i++)
+ til_setup_free(s->scenes[i].setup);
+
+ free((void *)s->base);
+ free((void *)s->host);
+ free((void *)s->scener_address);
+ free(setup);
}
© All Rights Reserved