Possible Duplicate:
Should one really set pointers toNULL
after freeing them?
I have allocated dynamic memory to pointer using malloc and calloc. After using this pointer, I should free the memory so that block can be returned to OS(its fine). Now My question is that after freeing the block, why should I do something like that:
pointer = NULL;
Thanks for help...