mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-20 14:20:42 +01:00
fix invalid free introduced by exec_template()
This commit is contained in:
parent
3e76bde213
commit
dc8c26d115
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user