do check if P_args is NULL before trying to free its elements