summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDumitru Ceara <dceara@redhat.com>2019-05-08 14:56:23 +0200
committerBen Pfaff <blp@ovn.org>2019-05-08 10:27:16 -0700
commita4c8e0454bf740caf88ab334080f97e63a22d948 (patch)
tree50da5c5dde20d58bd2f128f12cdc323127008b1b
parent6210a502e7aca4dece9497c5c93378e27f92cb81 (diff)
downloadopenvswitch-a4c8e0454bf740caf88ab334080f97e63a22d948.tar.gz
stopwatch: Free stopwatch packets after processing
The free(pkt) call was missing inside the stopwatch_thread processing loop. Fixes: 484f7dbdaa2b ("stopwatch: Fix Windows incompatibility") Acked-by: Eelco Chaudron <echaudro@redhat.com> Signed-off-by: Dumitru Ceara <dceara@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
-rw-r--r--lib/stopwatch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/stopwatch.c b/lib/stopwatch.c
index 54a85edb4..f5602163b 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);