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 1542f8f commit 4c8e226Copy full SHA for 4c8e226
1 file changed
lib/streambuf.c
@@ -53,6 +53,8 @@ struct streambuf *streambuf_new(struct poller *p, int fd) {
53
54
55
void streambuf_destroy(struct streambuf *b) {
56
+ if(!b)
57
+ return;
58
g_string_free(b->buf, TRUE);
59
g_free(b);
60
}
0 commit comments