app layer ftp fix (mem leak)

remotes/origin/master-1.0.x
Pablo Rincon 15 years ago committed by Victor Julien
parent a098e39bed
commit 18954a2c4c

@ -248,6 +248,9 @@ static void *FTPStateAlloc(void) {
}
static void FTPStateFree(void *s) {
FtpState *fstate = (FtpState *) s;
if (fstate->port_line != NULL)
SCFree(fstate->port_line);
SCFree(s);
#ifdef DEBUG
SCMutexLock(&ftp_state_mem_lock);

Loading…
Cancel
Save