Bug fix.
Ensures that SLInsert frees memory allocated for newNode if the function exits with errors.