Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pico_w/wifi/http_client/example_http_client_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ err_t http_client_header_print_fn(__unused httpc_state_t *connection, __unused v
char c = (char)pbuf_get_at(hdr, offset++);
HTTP_INFOC(c);
}
pbuf_free(hdr);
return ERR_OK;
}

Expand All @@ -54,6 +55,7 @@ err_t http_client_receive_print_fn(__unused void *arg, __unused struct altcp_pcb
char c = (char)pbuf_get_at(p, offset++);
HTTP_INFOC(c);
}
pbuf_free(p);
return ERR_OK;
}

Expand All @@ -64,6 +66,7 @@ static err_t internal_header_fn(httpc_state_t *connection, void *arg, struct pbu
if (req->headers_fn) {
return req->headers_fn(connection, req->callback_arg, hdr, hdr_len, content_len);
}
pbuf_free(hdr);
return ERR_OK;
}

Expand Down