This is an automated email from the ASF dual-hosted git repository.
paleolimbot 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 c9555d81 fix: Fix leak reported by coverity scan (#832)
c9555d81 is described below
commit c9555d816a752270de2a85fb5cc14de2c927468e
Author: Nyall Dawson <[email protected]>
AuthorDate: Tue Dec 9 10:33:05 2025 +1000
fix: Fix leak reported by coverity scan (#832)
Detected running coverity scan over QGIS, with the new external
nanoarrow lib.
---
src/nanoarrow/common/array_stream.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/nanoarrow/common/array_stream.c
b/src/nanoarrow/common/array_stream.c
index 28717b64..886ea737 100644
--- a/src/nanoarrow/common/array_stream.c
+++ b/src/nanoarrow/common/array_stream.c
@@ -107,6 +107,7 @@ ArrowErrorCode ArrowBasicArrayStreamInit(struct
ArrowArrayStream* array_stream,
(struct ArrowArray*)ArrowMalloc(n_arrays * sizeof(struct ArrowArray));
if (private_data->arrays == NULL) {
ArrowBasicArrayStreamRelease(array_stream);
+ ArrowFree(private_data);
return ENOMEM;
}
}