Fix a few segfaults in http and json.

This commit is contained in:
Jordan Bancino 2023-05-29 22:48:50 +00:00
parent c206ec495d
commit 88f73a6131
3 changed files with 5 additions and 2 deletions

View file

@ -126,6 +126,7 @@ recipe_docs() {
recipe_cytoplasm() {
cd Cytoplasm
export TLS_IMPL
export CFLAGS
if ! sh make.sh; then
exit 1
fi

View file

@ -199,8 +199,11 @@ Main(Array * args)
HttpRequestSendHeaders(cx);
StreamCopy(in, HttpClientStream(cx));
if (in != StreamStdin())
{
StreamClose(in);
}
}
else
{
char *lenStr;

View file

@ -189,7 +189,6 @@ encode(char *str)
JsonEncodeValue(val, StreamStdout(), JSON_DEFAULT);
JsonValueFree(val);
StreamPutc(StreamStdout(), '\n');
JsonValueFree(val);
}
int