X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Ftest_mutex.c;h=843ea8f40a9c8163f71305038d262fdcecd92cae;hp=66d648168a1ce3105a27f88252df5e2d54b93197;hb=83bf5a83b9296d6fe16e55d2c54209c35d2fa20b;hpb=6bc9db9f9f6944f86f1337a9a4f1e232678afc7b diff --git a/test/test_mutex.c b/test/test_mutex.c index 66d6481..843ea8f 100644 --- a/test/test_mutex.c +++ b/test/test_mutex.c @@ -28,6 +28,8 @@ static void tst(void) yaz_mutex_leave(p); yaz_mutex_destroy(&p); YAZ_CHECK(p == 0); + + yaz_mutex_destroy(&p); /* OK to "destroy" NULL handle */ } int main (int argc, char **argv)