cpu: Fix memory leak in traffic generator
authorAndreas Hansson <andreas.hansson@arm.com>
Sun, 22 Nov 2015 10:10:16 +0000 (05:10 -0500)
committerAndreas Hansson <andreas.hansson@arm.com>
Sun, 22 Nov 2015 10:10:16 +0000 (05:10 -0500)
commit949437d559bcb0d40f6fe4fa81984a2467b7b52f
treea1bb9cc8f4faf0e36f77dc3734cf40321e770a2b
parentd57a855e40e5d85024ce4a5dd31ad1e45897ee04
cpu: Fix memory leak in traffic generator

In cases where we discard the packet, make sure to also delete it and
the associated request.
src/cpu/testers/traffic_gen/traffic_gen.cc