Fixed small memory leak in the template routine. Thanks to Grooves for noticing.

This commit is contained in:
Jeroen Domburg
2015-04-20 09:44:18 +02:00
parent d088cddd70
commit 9847755cf4
2 changed files with 10 additions and 0 deletions
+1
View File
@@ -179,6 +179,7 @@ int ICACHE_FLASH_ATTR cgiEspFsTemplate(HttpdConnData *connData) {
//We're done.
((TplCallback)(connData->cgiArg))(connData, NULL, &tpd->tplArg);
espFsClose(tpd->file);
os_free(tpd);
return HTTPD_CGI_DONE;
} else {
//Ok, till next time.