mirror of https://github.com/OISF/suricata
memory leak cleanups in misc places
Hello, This is all the rest of the memory leaks I found. *In src/source-pcap-file.c at line 152, ptv is not being freed. *In src/util-unittest-helper.c at line 152, p was not being freed. *In src/log-httplog.c at line 195, aft was not being freed *In src/counters.c at line 51, log_filename was not being freed. At line 1188 pctx is being tested to see if its NULL. However, at 1173 it exits the function if it were NULL. This test is not needed and should be deleted. *In src/defrag.c at line 351, tracker was not being freed. At line 390, dc is being checked for NULL but this was already done at line 384. Probably what was meant was checking the value of dc->frag_table which was just assigned. The patch below makes the above described changes. -Steveremotes/origin/master-1.0.x
parent
60ad9d29c5
commit
c95cd2e80a
Loading…
Reference in New Issue