From: Orestis Floros Date: Sat, 25 Aug 2018 11:49:28 +0000 (+0300) Subject: i3-config-wizard: fix small memleak X-Git-Tag: 4.16~52^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a8b90317a0a20fb061ce97d73a7df4268cdd49d6;p=i3%2Fi3 i3-config-wizard: fix small memleak --- diff --git a/i3-config-wizard/main.c b/i3-config-wizard/main.c index 4a843fae..0e0a3e65 100644 --- a/i3-config-wizard/main.c +++ b/i3-config-wizard/main.c @@ -293,6 +293,7 @@ static char *next_state(const cmdp_token *token) { } sasprintf(&res, "bindsym %s%s%s %s%s\n", (modifiers == NULL ? "" : modrep), (modifiers == NULL ? "" : "+"), str, (release == NULL ? "" : release), get_string("command")); clear_stack(); + free(modrep); return res; }