Fix segfault in loose_backend__readstream#4906
Conversation
If the routine exits with error before stream or hash_ctx is initialized, the program will segfault when trying to free them.
|
I don't think that we need to add a lot of unnecessary for example is unnecessary, as Can you better describe the problem you're seeing? If we fail to |
The
If I updated the PR to remove one unnecessary null check. How does it look now? |
|
Thanks for the clarification. I went through the various Thanks! |
|
Done! |
|
Awesome, thanks! |
If the routine exits with error before stream or hash_ctx is initialized, the
program will segfault when trying to free them.