You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by gi...@apache.org on 2023/03/28 15:05:02 UTC
[arrow-nanoarrow] branch main updated: ipc: Update dist/ for commit 26cb9c3be5bcd1588c4fba42ff2d5656087d7110
This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-nanoarrow.git
The following commit(s) were added to refs/heads/main by this push:
new 95e32a4 ipc: Update dist/ for commit 26cb9c3be5bcd1588c4fba42ff2d5656087d7110
95e32a4 is described below
commit 95e32a416a83b1b011d7b6b5709c21a158fd8d48
Author: GitHub Actions <ac...@github.com>
AuthorDate: Tue Mar 28 15:04:55 2023 +0000
ipc: Update dist/ for commit 26cb9c3be5bcd1588c4fba42ff2d5656087d7110
---
dist/nanoarrow_ipc.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dist/nanoarrow_ipc.c b/dist/nanoarrow_ipc.c
index c783dcb..a75cff2 100644
--- a/dist/nanoarrow_ipc.c
+++ b/dist/nanoarrow_ipc.c
@@ -21367,8 +21367,10 @@ ArrowErrorCode ArrowIpcDecoderSetSchema(struct ArrowIpcDecoder* decoder,
struct ArrowIpcDecoderPrivate* private_data =
(struct ArrowIpcDecoderPrivate*)decoder->private_data;
+ // Reset previously allocated schema-specific resources
+ private_data->n_buffers = 0;
+ private_data->n_fields = 0;
ArrowArrayViewReset(&private_data->array_view);
-
if (private_data->fields != NULL) {
ArrowFree(private_data->fields);
}
@@ -21385,7 +21387,6 @@ ArrowErrorCode ArrowIpcDecoderSetSchema(struct ArrowIpcDecoder* decoder,
}
// Walk tree and calculate how many fields we need to allocate
- private_data->n_fields = 0;
ArrowIpcDecoderCountFields(schema, &private_data->n_fields);
private_data->fields = (struct ArrowIpcField*)ArrowMalloc(private_data->n_fields *
sizeof(struct ArrowIpcField));