Corrected potential NULL pointers if out of memory
Corrected potential NULL pointers if out of memory

Specifically, the return value of calloc was ignored, before. Now it
is correctly taken into account and an error is returned if it is
impossible to allocate, or re-allocate, the LED index.

fennekki/ledctl