aboutsummaryrefslogtreecommitdiff
path: root/scripts/kconfig/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/kconfig/util.c')
-rw-r--r--scripts/kconfig/util.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/kconfig/util.c b/scripts/kconfig/util.c
index 263091945..13369e6a1 100644
--- a/scripts/kconfig/util.c
+++ b/scripts/kconfig/util.c
@@ -79,8 +79,7 @@ struct gstr str_assign(const char *s)
79/* Free storage for growable string */ 79/* Free storage for growable string */
80void str_free(struct gstr *gs) 80void str_free(struct gstr *gs)
81{ 81{
82 if (gs->s) 82 free(gs->s);
83 free(gs->s);
84 gs->s = NULL; 83 gs->s = NULL;
85 gs->len = 0; 84 gs->len = 0;
86} 85}