Link to troubleshoot memory allocation failure
http://www.cisco.com/en/US/products/sw/iosswrel/ps1831/products_tech_note09186a00800a6f3a.shtml#topic1
Briefly;
What is Memory Allocation Failure?
Memory allocation failure means either:
The router has used all available memory (temporarily or permanently), or
The memory has fragmented into such small pieces that the router cannot find a usable available block. This can happen with the processor memory (used by the Cisco Internet Operating System [IOS]) or with the packet memory (used by incoming and outgoing packets).
Is this a one time error or does it happen often? Have the routers been reloaded since the power issue?
Usually a reload will free up any fragmented memory.