tests: fix leak in test_util_file ; found by cppcheck

Which now seems to fail the build.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
This commit is contained in:
Alexandru Ardelean
2017-07-10 18:00:41 +03:00
parent effab3f91a
commit 7b9432d564

View File

@@ -106,6 +106,7 @@ static void stat_and_cat(const char *file)
buf[sb.st_size] = '\0';
printf("file[%s], size=%d, contents=%s\n", file, (int)sb.st_size, buf);
free(buf);
close(d);
}
int main(int argc, char **argv)