if I allocate memory using malloc(), do I have to call free() afterwards even if the program exits?
#include <stdlib.h>
#include <stdio.h>
int main()
{
    int *a = malloc(sizeof(int));
    *a = 10;
    printf("%d", *a);
    free(a);
    return 0;
}
What happens to the memory after the program exits if I don't call free()?
 
     
    