From: beauby Date: Fri, 10 Feb 2012 00:12:43 +0000 (+0100) Subject: Fixed a memory leak X-Git-Tag: 4.2~83^2^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b3e3ecf722abc6540a5a975a4e643c7d207d356f;p=i3%2Fi3 Fixed a memory leak --- diff --git a/i3-config-wizard/main.c b/i3-config-wizard/main.c index 1a66b9f0..9c2bbe55 100644 --- a/i3-config-wizard/main.c +++ b/i3-config-wizard/main.c @@ -293,6 +293,7 @@ static void finish() { FILE *ks_config = fopen(config_path, "w"); if (ks_config == NULL) err(1, "Could not open output config file \"%s\"", config_path); + free(config_path); char *line = NULL; size_t len = 0;