1
0

proj: Enhance ./test-return-values

This commit is contained in:
2025-03-09 10:58:24 +01:00
parent de790eabf9
commit ab6a405830
4 changed files with 119 additions and 11 deletions

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);