(task_image.c) Fix REVERSE_INULL coverity warning
This commit is contained in:
parent
9540e91e4c
commit
2ed15fbfbc
|
@ -254,12 +254,9 @@ static int cb_nbio_generic(nbio_handle_t *nbio, size_t *len)
|
|||
|
||||
error:
|
||||
task_image_load_free_internal(nbio);
|
||||
if (nbio)
|
||||
{
|
||||
if (nbio->data)
|
||||
free(nbio->data);
|
||||
nbio->data = NULL;
|
||||
}
|
||||
if (nbio->data)
|
||||
free(nbio->data);
|
||||
nbio->data = NULL;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue