This commit is contained in:
Markus Makela
2015-07-15 17:40:36 +03:00

View File

@ -1812,7 +1812,7 @@ dcb_close(DCB *dcb)
* dcb_close may be called for freshly created dcb, in which case * dcb_close may be called for freshly created dcb, in which case
* it only needs to be freed. * 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); dcb_final_free(dcb);
return; return;