Skip to content

Suppress valgrind errors of the Xdr library.

Jorge Camarero Vera requested to merge fix-valgrind-errors-of-osm-test into main

Summary

Valgrind was throwing this error, but without reporting any kind of memory leak related with this issue. I've tried to replicate the release of the memory that Xdr library has implemented doing a simpler version, but valgrind was still reporting this error. So I guess it's a false positive.

==9358== Mismatched free() / delete / delete []
==9358==    at 0x4C2AF5D: free (vg_replace_malloc.c:540)
==9358==    by 0x133259CB: xdr_string (in /usr/lib64/libc-2.17.so)
==9358==    by 0x51298F: castor::tape::tapeFile::osm::xdr::VolLabel::_decode(XDR*, castor::tape::tapeFile::osm::xdr::VolLabel*) (OsmXdrStructure.hpp:156)

I've created a specific valgrind test for OSM Tape test suppressing this kind of mismatched errors.

References

Merge request reports

Loading