Skip to content

Conversation

@chen1195585098
Copy link
Contributor

The memory allocated for args->errstr via gf_strdup must be explicitly freed before the function returns or at the appropriate cleanup point.

chenjinhao added 3 commits November 28, 2025 15:00
args->errstr is generated by gf_strdup, so it should be manually
freed at the end of its life cycle.

Fixes: gluster#4637
Signed-off-by: chenjinhao <[email protected]>
Add missing gd_syncargs_fini() calls in functions to
avoid mutex and syncbarrier leaks.

original patch: 6279c5b

Updates: gluster#1000
Signed-off-by: chenjinhao <[email protected]>
Fix following compilation error

ec-inode-read.c: In function 'ec_manager_readv':
ec-inode-read.c:1375:13: error: a label can only be part of a statement and a declaration is not a statement
             uintptr_t inode_read_mask = ec_inode_readmask_get(fop->fd->inode,
             ^~~~~~~~~
make[5]: *** [Makefile:650: ec-inode-read.lo] Error 1

Fixes: gluster#4637
Signed-off-by: chenjinhao <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant