mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-18 16:50:42 +01:00
bugfix: plug a memleak
This commit is contained in:
parent
f0a8468cf5
commit
3b9be747b9
@ -236,7 +236,7 @@ injectMsg(uchar *pszCmd, tcps_sess_t *pSess)
|
||||
int iFrom;
|
||||
int nMsgs;
|
||||
int i;
|
||||
ratelimit_t *ratelimit;
|
||||
ratelimit_t *ratelimit = NULL;
|
||||
DEFiRet;
|
||||
|
||||
/* we do not check errors here! */
|
||||
@ -252,9 +252,10 @@ injectMsg(uchar *pszCmd, tcps_sess_t *pSess)
|
||||
|
||||
CHKiRet(sendResponse(pSess, "%d messages injected\n", nMsgs));
|
||||
DBGPRINTF("imdiag: %d messages injected\n", nMsgs);
|
||||
ratelimitDestruct(ratelimit);
|
||||
|
||||
finalize_it:
|
||||
if(ratelimit != NULL)
|
||||
ratelimitDestruct(ratelimit);
|
||||
RETiRet;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user