summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2015-06-07 00:23:11 -0700
committerAlan Antonuk <alan.antonuk@gmail.com>2015-06-07 00:23:11 -0700
commit426a3a78325927145c602e8462a7cb489db02327 (patch)
tree089b793acdc0a623050733086492a4d5f5e85fdf /tests
parent8d77b4c84b68a0dab1a8c8f87cfe428df9a96ae4 (diff)
downloadrabbitmq-c-426a3a78325927145c602e8462a7cb489db02327.tar.gz
tests: fix memory leak in test_table.c
Diffstat (limited to 'tests')
-rw-r--r--tests/test_tables.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_tables.c b/tests/test_tables.c
index cc40410..4c9fc75 100644
--- a/tests/test_tables.c
+++ b/tests/test_tables.c
@@ -475,8 +475,9 @@ int main(void)
die("output file did not have expected contents");
}
- fclose(out);
fclose(expected);
+ free(expected_path);
+ fclose(out);
return 0;
}