Browse Source

Merge commit 'cae4107' into bfgminer

Luke Dashjr 12 years ago
parent
commit
5044cd5aee
1 changed files with 1 additions and 0 deletions
  1. 1 0
      miner.c

+ 1 - 0
miner.c

@@ -5851,6 +5851,7 @@ void write_config(FILE *fcfg)
 		if (kpath[strlen(kpath)-1] == '/')
 			kpath[strlen(kpath)-1] = 0;
 		fprintf(fcfg, ",\n\"kernel-path\" : \"%s\"", json_escape(kpath));
+		free(kpath);
 	}
 	if (schedstart.enable)
 		fprintf(fcfg, ",\n\"sched-time\" : \"%d:%d\"", schedstart.tm.tm_hour, schedstart.tm.tm_min);