This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
jdk-build-libs
/
json-c
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
11
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
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>
tags/json-c-0.13-20171207
Alexandru Ardelean
8 years ago
parent
effab3f91a
commit
7b9432d564
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
tests/test_util_file.c
+ 1
- 0
tests/test_util_file.c
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)
Write
Preview
Loading…
Cancel
Save