summaryrefslogtreecommitdiff
path: root/src/tools/oping/oping.c
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-10-24 10:47:13 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-10-24 10:47:13 +0200
commitc4d765b68047176fb83ebc5a7462a68a5d051008 (patch)
treec7233cd16c5efc138120631c91e69a6336ce58d0 /src/tools/oping/oping.c
parentb23e3024d12c28b01426cc37d5adf03f9c1bea88 (diff)
downloadouroboros-c4d765b68047176fb83ebc5a7462a68a5d051008.tar.gz
ouroboros-c4d765b68047176fb83ebc5a7462a68a5d051008.zip
tools: Fix memory leaks in oping
Diffstat (limited to 'src/tools/oping/oping.c')
-rw-r--r--src/tools/oping/oping.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/oping/oping.c b/src/tools/oping/oping.c
index b476b33a..801f79b5 100644
--- a/src/tools/oping/oping.c
+++ b/src/tools/oping/oping.c
@@ -54,6 +54,7 @@ struct c {
double rtt_m2;
flow_set_t * flows;
+ fqueue_t * fq;
/* needs locking */
struct timespec * times;
@@ -66,6 +67,7 @@ struct c {
struct s {
struct timespec times[OPING_MAX_FLOWS];
flow_set_t * flows;
+ fqueue_t * fq;
pthread_mutex_t lock;
pthread_t cleaner_pt;