We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 222635a commit 1f9eb1dCopy full SHA for 1f9eb1d
1 file changed
lib/streambuf.c
@@ -49,6 +49,8 @@ struct streambuf *streambuf_new(struct poller *p, int fd) {
49
50
51
void streambuf_destroy(struct streambuf *b) {
52
+ if(!b)
53
+ return;
54
g_string_free(b->buf, TRUE);
55
g_slice_free1(sizeof(*b), b);
56
}
0 commit comments