(task_image.c) Fix REVERSE_INULL coverity warning

This commit is contained in:
twinaphex 2017-02-21 20:28:10 +01:00
parent 9540e91e4c
commit 2ed15fbfbc

View File

@ -254,12 +254,9 @@ static int cb_nbio_generic(nbio_handle_t *nbio, size_t *len)
error: error:
task_image_load_free_internal(nbio); task_image_load_free_internal(nbio);
if (nbio) if (nbio->data)
{ free(nbio->data);
if (nbio->data) nbio->data = NULL;
free(nbio->data);
nbio->data = NULL;
}
return -1; return -1;
} }