Skip to content

Commit

Permalink
stopwatch: Free stopwatch packets after processing
Browse files Browse the repository at this point in the history
The free(pkt) call was missing inside the stopwatch_thread processing
loop.

Fixes: 484f7db ("stopwatch: Fix Windows incompatibility")
Acked-by: Eelco Chaudron <[email protected]>
Signed-off-by: Dumitru Ceara <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
dceara authored and blp committed May 8, 2019
1 parent 01e8841 commit 294637e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/stopwatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ stopwatch_thread(void *ign OVS_UNUSED)
should_exit = true;
break;
}
free(pkt);
}
ovs_mutex_unlock(&stopwatches_lock);

Expand Down

0 comments on commit 294637e

Please sign in to comment.