Mercurial > hg > th-libs
comparison tests.c @ 784:1db55c733f7d
Fix memory leaks in tests.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 20 Dec 2023 07:51:04 +0200 |
parents | 4cc514343376 |
children | bca32201868e |
comparison
equal
deleted
inserted
replaced
783:db1a132c7754 | 784:1db55c733f7d |
---|---|
936 { | 936 { |
937 TEST_1A(th_stat_path("/tmp/thlibtest/foobar/baz", &stat) == true); | 937 TEST_1A(th_stat_path("/tmp/thlibtest/foobar/baz", &stat) == true); |
938 TEST_1B("%d", (stat.flags & TH_IS_DIR), !=, 0); | 938 TEST_1B("%d", (stat.flags & TH_IS_DIR), !=, 0); |
939 } | 939 } |
940 #endif | 940 #endif |
941 th_free(home); | |
942 th_free(cfg); | |
941 } | 943 } |
942 | 944 |
943 // | 945 // |
944 // Test series for printf() | 946 // Test series for printf() |
945 // | 947 // |