Do I need to close stream if I didn't correctly open it?

129 Views Asked by At

Do I need to close stream if I didn't correctly open it?

if (!CFReadStreamOpen(stream))
    {
        //Do I need to add
       //CFReadStreamClose(stream)
        CFRelease(stream);
        stream = nil;
    }
0

There are 0 best solutions below