Fix mistake in dcb_close.

This commit is contained in:
counterpoint 2015-07-15 15:15:28 +01:00
parent 0a43b9eebf
commit d4bc710d3e

View File

@ -1812,7 +1812,7 @@ dcb_close(DCB *dcb)
* dcb_close may be called for freshly created dcb, in which case
* it only needs to be freed.
*/
if (dcb->state == DCB_STATE_ALLOC && dcb->fd != DCBFD_CLOSED)
if (dcb->state == DCB_STATE_ALLOC && dcb->fd == DCBFD_CLOSED)
{
dcb_final_free(dcb);
return;