Refactored context_free.

"Not NULL" checks are not needed as context memory is zero
initialized and free already checks whether the underlying
pointer is set to NULL.