aboutsummaryrefslogtreecommitdiff
path: root/tests/benchmarks
diff options
context:
space:
mode:
Diffstat (limited to 'tests/benchmarks')
-rw-r--r--tests/benchmarks/latency.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/benchmarks/latency.c b/tests/benchmarks/latency.c
index 9d68fd3f..849c39cd 100644
--- a/tests/benchmarks/latency.c
+++ b/tests/benchmarks/latency.c
@@ -75,12 +75,12 @@ int benchmarks_ping_latency (const char *host, float *average){
}
if(!found)
goto parseerror;
- fclose(fd);
+ pclose(fd);
return 0;
parseerror:
fprintf(stderr,"Parse error : couldn't locate average in %s",line);
- fclose(fd);
+ pclose(fd);
return -1;
}