Browse Source

Merge commit 'cae4107' into bfgminer-2.10.x

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

+ 1 - 0
miner.c

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