Too low allocation size

Added condition to check if the allocated size is less than size of
single struct head