fix invalid free introduced by exec_template()

This commit is contained in:
Rainer Gerhards 2013-12-19 17:18:23 +01:00
parent 3e76bde213
commit dc8c26d115

View File

@ -2190,7 +2190,8 @@ cnffuncDestruct(struct cnffunc *func)
break;
default:break;
}
free(func->funcdata);
if(func->fID != CNFFUNC_EXEC_TEMPLATE)
free(func->funcdata);
free(func->fname);
}