The memory allocated for args->errstr via gf_strdup must be explicitly freed before the function returns or at the appropriate cleanup point.
Meanwhile, I got the following error during compilation with the latest code:
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
It occurs because inode_read_mask is declared in case-label.
The memory allocated for
args->errstrviagf_strdupmust be explicitly freed before the function returns or at the appropriate cleanup point.Meanwhile, I got the following error during compilation with the latest code:
It occurs because inode_read_mask is declared in case-label.