Permalink
Browse files

Fix issue #28

  • Loading branch information...
1 parent cce89e3 commit 617c79089f8d8b491ef2e6231fa979957acc0419 @PerGraa PerGraa committed Nov 3, 2016
Showing with 3 additions and 0 deletions.
  1. +3 −0 example/jsonparse.cpp
@@ -95,6 +95,7 @@ void testJsonSuite()
if (dir == NULL)
{
printf("Error: failed to open jsontest directory\n");
+ closedir(dir);
return;
}
@@ -122,6 +123,8 @@ void testJsonSuite()
}
}
}
+
+ closedir(dir);
}
#endif

0 comments on commit 617c790

Please sign in to comment.