cos_module_np.c : removed spaces and better deallocation