Conversation
This fixes the issue of missing includes when using the header <jerasure.h>.
Check matrix for NULL before call talloc(). CID 1093213 (#1 of 1): Resource leak (RESOURCE_LEAK) 4. leaked_storage: Variable "bitmatrix" going out of scope leaks the storage it points to. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Fix for Coverity issue from Ceph project: CID 1093211 (#1 of 1): Resource leak (RESOURCE_LEAK) 20. leaked_storage: Variable "ind_to_row" going out of scope leaks the storage it points to. CID 1093212 (#1 of 1): Resource leak (RESOURCE_LEAK) 20. leaked_storage: Variable "row_ids" going out of scope leaks the storage it points to. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
|
Is there a bigger issue here than doing housecleaning? I ask because, introducing this change could result in a regression for existing users, since it relocates a bunch of the header files. |
|
As it stands right now jerasure.h is installed in include. |
|
I agree with szanni; please either fix the includes or add something to the README warning that users will have to specifically fix this issue in their makefiles. |
This fixes the issue of missing includes when using
the system-wide header jerasure.h