Skip to content

Commit

Permalink
fix one
Browse files Browse the repository at this point in the history
  • Loading branch information
shikokuchuo committed Nov 29, 2023
1 parent ba8db3c commit 6c49107
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: nanonext
Type: Package
Title: NNG (Nanomsg Next Gen) Lightweight Messaging Library
Version: 0.10.4.9019
Version: 0.10.4.9020
Description: R binding for NNG (Nanomsg Next Gen), a successor to ZeroMQ. NNG is
a socket library implementing 'Scalability Protocols', a reliable,
high-performance standard for common communications patterns including
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# nanonext 0.10.4.9019
# nanonext 0.10.4.9020

*This is a major stability release bundling the 'libnng' v1.6.0 source code.*

Expand Down
3 changes: 2 additions & 1 deletion src/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,13 @@ SEXP rnng_ncurl(SEXP http, SEXP convert, SEXP follow, SEXP method, SEXP headers,
if (relo && LOGICAL(follow)[0]) {
const char *location = nng_http_res_get_header(res, "Location");
if (location == NULL) goto resume;
nng_url_free(url);
nng_url *oldurl = url;
xc = nng_url_parse(&url, location);
if (xc) goto resume;
nng_http_res_free(res);
nng_http_req_free(req);
nng_http_client_free(client);
nng_url_free(oldurl);
cfg = NULL;
goto relocall;
}
Expand Down

0 comments on commit 6c49107

Please sign in to comment.