Differences From Artifact [b34f9f0d7d]:
- File src/OFStream.m — part of check-in [d0ae3bfd6c] at 2020-10-25 23:33:09 on branch trunk — Add of_{malloc,calloc,realloc,free} (user: js, size: 40559) [annotate] [blame] [check-ins using]
To Artifact [a4e5576272]:
- File
src/OFStream.m
— part of check-in
[3d8286feee]
at
2020-11-04 23:18:25
on branch trunk
— Remove of_free()
While it makes sense to wrap malloc and calloc to replace the error
checking with exceptions, it does not make sense to wrap free. (user: js, size: 40556) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
642 643 644 645 646 647 648 | exactLength: count * itemSize]; ret = [OFData dataWithItemsNoCopy: buffer itemSize: itemSize count: count freeWhenDone: true]; } @catch (id e) { | | | 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 | exactLength: count * itemSize]; ret = [OFData dataWithItemsNoCopy: buffer itemSize: itemSize count: count freeWhenDone: true]; } @catch (id e) { free(buffer); @throw e; } return ret; } - (OFData *)readDataUntilEndOfStream |
︙ | ︙ |