lucocozz / malloc

File .deepsource.toml not found in the default branch of the repository root. Please refer to the docs.

Loop body is not enclosed in {} CXX-W1243
Anti-pattern
Minor
2 occurrences in this check
loop body is not enclosed in { }
 42
 43	int	*ptr[ALLOC] = { NULL };
 44
 45	for (uint i = 0; i < ALLOC; i++) 46		ptr[i] = malloc(sizeof(int) * 64); 47	
 48	show_alloc_mem();
 49
loop body is not enclosed in { }
 47	
 48	show_alloc_mem();
 49
 50	for (uint i = 0; i < ALLOC; i++) 51		free(ptr[i]); 52
 53	show_alloc_mem();
 54}