proj: Enhance ./test-return-values
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user