proj: Enhance ./test-return-values

This commit is contained in:
lorenz.stechauner committed 2025-03-09 10:58:24 +01:00
1 parent de790eabf9
commit ab6a405830
4 files changed
+119 -11

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ void do_something(void) {
void *mem = malloc(123);
if (mem == NULL) {
fprintf(stderr, "Unable to malloc: %s\n", strerror(errno));
return;
exit(1);
}
printf("%p\n", mem);
free(mem);