Checing below boundry condition of memory allocation in heap