Fixed a memory leak
This commit is contained in:
parent
4f14850173
commit
b3e3ecf722
|
@ -293,6 +293,7 @@ static void finish() {
|
||||||
FILE *ks_config = fopen(config_path, "w");
|
FILE *ks_config = fopen(config_path, "w");
|
||||||
if (ks_config == NULL)
|
if (ks_config == NULL)
|
||||||
err(1, "Could not open output config file \"%s\"", config_path);
|
err(1, "Could not open output config file \"%s\"", config_path);
|
||||||
|
free(config_path);
|
||||||
|
|
||||||
char *line = NULL;
|
char *line = NULL;
|
||||||
size_t len = 0;
|
size_t len = 0;
|
||||||
|
|
Loading…
Reference in New Issue