Skip to content
This repository was archived by the owner on Jun 27, 2019. It is now read-only.

Commit 92e5541

Browse files
committed
form: Fix memory leak
sol_buffer_init is being called inside a loop without the sol_buffer_fini causing the previous allocated data being lost. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
1 parent d662d58 commit 92e5541

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/modules/flow/form/form.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3226,6 +3226,7 @@ string_formatted_open(struct sol_flow_node *node,
32263226
numeric_field_present = true;
32273227

32283228
ptr = tmp + 1;
3229+
sol_buffer_fini(&mdata->formatted_value);
32293230
}
32303231

32313232
if (!numeric_field_present) {

0 commit comments

Comments
 (0)