Add one call to yaz_mutex_destroy in test
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 23 Mar 2010 10:28:16 +0000 (11:28 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 23 Mar 2010 10:28:16 +0000 (11:28 +0100)
test/test_mutex.c

index 66d6481..843ea8f 100644 (file)
@@ -28,6 +28,8 @@ static void tst(void)
     yaz_mutex_leave(p);
     yaz_mutex_destroy(&p);
     YAZ_CHECK(p == 0);
     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)
 }
 
 int main (int argc, char **argv)