The free(pkt) call was missing inside the stopwatch_thread processing
loop.

Signed-off-by: Dumitru Ceara <dce...@redhat.com>
---
 lib/stopwatch.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/stopwatch.c b/lib/stopwatch.c
index 54a85ed..f560216 100644
--- a/lib/stopwatch.c
+++ b/lib/stopwatch.c
@@ -450,6 +450,7 @@ stopwatch_thread(void *ign OVS_UNUSED)
                 should_exit = true;
                 break;
             }
+            free(pkt);
         }
         ovs_mutex_unlock(&stopwatches_lock);
 
-- 
1.8.3.1

_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to