Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[XrdApps] Fix small memory leak #1846

Merged
merged 1 commit into from
Dec 1, 2022
Merged

Conversation

esindril
Copy link
Contributor

@esindril esindril commented Dec 1, 2022

Before:

xrdcp -f --cksum adler32 "root://eosams02.cern.ch//eos/ams/Data/AMS02/2011A/RawData/1308783516?eos.ruid=0" /var/tmp/dump
[1.195GB/1.195GB][100%][==================================================][102MB/s]    
Run: [ERROR] CheckSum error

=================================================================
==30521==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x7f537cff336f in operator new(unsigned long) (/usr/lib64/libasan.so.5+0x10e36f)
    #1 0x7f537cac208d in XrdCksCalcadler32::New() /eos-xrootd-code/src/./XrdCks/XrdCksCalcadler32.hh:95

SUMMARY: AddressSanitizer: 24 byte(s) leaked in 1 allocation(s).

After the fix:

xrdcp -f --cksum adler32 "root://eosams02.cern.ch//eos/ams/Data/AMS02/2011A/RawData/1308783516?eos.ruid=0" /var/tmp/dump
[1.195GB/1.195GB][100%][==================================================][111.3MB/s]  
Run: [ERROR] CheckSum error

@abh3 abh3 merged commit a8ad65a into xrootd:master Dec 1, 2022
@esindril esindril deleted the fix_memory_leak branch February 7, 2023 15:15
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.

None yet

2 participants