File tree Expand file tree Collapse file tree 4 files changed +16
-3
lines changed Expand file tree Collapse file tree 4 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,12 @@ Also check the changes in springql-core: <https://github.com/SpringQL/SpringQL/b
13
13
<!-- markdownlint-disable MD024 -->
14
14
## [ Unreleased]
15
15
16
+ ## [ v0.16.0+3] - 2022-07-11
17
+
18
+ ### Fixed
19
+
20
+ - Memory leak of ` SpringSourceRowBuilder ` ([ #58 ] ( https://github.com/SpringQL/SpringQL-client-c/pull/58 ) )
21
+
16
22
## [ v0.16.0+2] - 2022-07-06
17
23
18
24
### Added
@@ -118,8 +124,9 @@ Depends on springql-core v0.7.1.
118
124
[ Semantic Versioning ] : https://semver.org/
119
125
120
126
<!-- Versions -->
121
- [ Unreleased ] : https://github.com/SpringQL/SpringQL-client-c/compare/v0.16.0+2 ...HEAD
127
+ [ Unreleased ] : https://github.com/SpringQL/SpringQL-client-c/compare/v0.16.0+3 ...HEAD
122
128
[ Released ] : https://github.com/SpringQL/SpringQL-client-c/releases
129
+ [ v0.16.0+3 ] : https://github.com/SpringQL/SpringQL-client-c/compare/v0.16.0+2...v0.16.0+3
123
130
[ v0.16.0+2 ] : https://github.com/SpringQL/SpringQL-client-c/compare/v0.16.0...v0.16.0+2
124
131
[ v0.16.0 ] : https://github.com/SpringQL/SpringQL-client-c/compare/v0.15.0+2...v0.16.0
125
132
[ v0.15.0+2 ] : https://github.com/SpringQL/SpringQL-client-c/compare/v0.15.0...v0.15.0+2
Original file line number Diff line number Diff line change @@ -232,6 +232,8 @@ enum SpringErrno spring_source_row_add_column_blob(SpringSourceRowBuilder *build
232
232
/**
233
233
* Finish creating a source row using a builder.
234
234
*
235
+ * The heap space for the `builder` is internally freed.
236
+ *
235
237
* # Returns
236
238
*
237
239
* SpringSourceRow
Original file line number Diff line number Diff line change @@ -305,6 +305,8 @@ pub unsafe extern "C" fn spring_source_row_add_column_blob(
305
305
}
306
306
/// Finish creating a source row using a builder.
307
307
///
308
+ /// The heap space for the `builder` is internally freed.
309
+ ///
308
310
/// # Returns
309
311
///
310
312
/// SpringSourceRow
@@ -313,7 +315,9 @@ pub unsafe extern "C" fn spring_source_row_build(
313
315
builder : * mut SpringSourceRowBuilder ,
314
316
) -> * mut SpringSourceRow {
315
317
let rust_builder = ( * builder) . to_row_builder ( ) ;
316
- SpringSourceRow :: new ( rust_builder. build ( ) ) . into_ptr ( )
318
+ let ret = SpringSourceRow :: new ( rust_builder. build ( ) ) . into_ptr ( ) ;
319
+ SpringSourceRowBuilder :: drop ( builder) ;
320
+ ret
317
321
}
318
322
319
323
/// Frees heap occupied by a `SpringSourceRow`.
You can’t perform that action at this time.
0 commit comments