Skip to content

Commit

Permalink
CRAN release 0.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
shikokuchuo committed Sep 27, 2023
1 parent 122331f commit 936ce6f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 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.1.9000
Version: 0.10.2
Description: R binding for NNG (Nanomsg Next Gen), a successor to ZeroMQ. NNG is
a socket library providing high-performance scalability protocols, a
cross-platform standard for messaging and communications. Serves as a
Expand Down
6 changes: 5 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# nanonext 0.10.1.9000 (development)
# nanonext 0.10.2

#### Updates

* Addresses one case of memory access error identified by CRAN.

# nanonext 0.10.1

Expand Down
10 changes: 7 additions & 3 deletions src/aio.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,13 @@ static void raio_complete_ack(void *arg) {
if (nng_aio_alloc(&aio, NULL, NULL) == 0) {
nng_aio_set_msg(aio, msg);
nng_ctx_send(*ctx, aio);
nng_aio_wait(aio);
if (nng_aio_result(aio))
nng_msg_free(nng_aio_get_msg(aio));
nng_aio_free(aio);
} else {
nng_msg_free(msg);
}
nng_msg_free(msg);
}

nng_mtx_lock(shr_mtx);
Expand All @@ -227,8 +231,8 @@ static void raio_complete_ack(void *arg) {
#else

if (nng_msg_alloc(&msg, 0) == 0) {
nng_ctx_sendmsg(*ctx, msg, 0);
nng_msg_free(msg);
if (nng_ctx_sendmsg(*ctx, msg, 0))
nng_msg_free(msg);
}
raio->result = res - !res;

Expand Down

0 comments on commit 936ce6f

Please sign in to comment.