[RFC] [CTDB] Optimized memory handling.

jim jim.brown at rsmas.miami.edu
Thu Dec 14 19:53:10 UTC 2017


You should not remove the error checks.
The errors won't happen but that is no reason not to keep the checks.
The code might change in the future.

On 12/14/2017 2:04 PM, Swen Schillig via samba-technical wrote:
>   	queue->im = tevent_create_immediate(queue);
> -	if (queue->im == NULL) {
> -		talloc_free(queue);
> -		return NULL;
> -	}
> -
>   	queue->queue = tevent_queue_create(queue, "out-queue");
> -	if (queue->queue == NULL) {
> -		talloc_free(queue);
> -		return NULL;
> -	}




More information about the samba-technical mailing list