So the question is simple, is there a way to tell GCC that I want to receive a warning if I do not free the block allocated for the heap? I know that we may have proprietary blocks for some purposes / we have already reached the end of the program or something like that.
int main(){ int *a = malloc(sizeof(int)); return 0; }
If I can get a warning even for this, it will be awesome.
c gcc gcc-warning
Yakup turkan
source share