(nbio) Fix leak
This commit is contained in:
parent
8fb9ce1b17
commit
91af356a31
|
@ -199,4 +199,8 @@ void nbio_free(struct nbio_t* handle)
|
||||||
}
|
}
|
||||||
fclose(handle->f);
|
fclose(handle->f);
|
||||||
free(handle->data);
|
free(handle->data);
|
||||||
|
|
||||||
|
handle->f = NULL;
|
||||||
|
handle->data = NULL;
|
||||||
|
free(handle);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue