Opened 2 years ago

Closed 19 months ago

#9718 closed defect (fixed)

CLOUD: memory leak

Reported by: criezy Owned by: bgK
Priority: normal Component: --Other--
Keywords: Cc:
Game:

Description

While running ScummVM with valgrind I noticed the following memory leak related to the cloud code:

==55827== 374,470 bytes in 5 blocks are definitely lost in loss record 10,524 of 10,551
==55827==    at 0x47E1: malloc (vg_replace_malloc.c:300)
==55827==    by 0x1019FC340: Common::MemoryReadWriteStream::ensureCapacity(unsigned int) :231)
==55827==    by 0x1019FBE5A: Common::MemoryReadWriteStream::write(void const*, unsigned int) (memstream.h:257)
==55827==    by 0x1019FA915: Networking::curlDataCallback(char*, unsigned long, unsigned long, void*) (networkreadstream.cpp:35)
==55827==    by 0x63D2BB: Curl_client_write (in /usr/lib/libcurl.4.dylib)
==55827==    by 0x654234: Curl_httpchunk_read (in /usr/lib/libcurl.4.dylib)
==55827==    by 0x64F09E: Curl_readwrite (in /usr/lib/libcurl.4.dylib)
==55827==    by 0x657B6F: multi_runsingle (in /usr/lib/libcurl.4.dylib)
==55827==    by 0x657000: curl_multi_perform (in /usr/lib/libcurl.4.dylib)
==55827==    by 0x1019F9977: Networking::ConnectionManager::processTransfers() (connectionmanager.cpp:177)
==55827==    by 0x1019F9657: Networking::ConnectionManager::handle() (connectionmanager.cpp:133)

Change History (1)

comment:1 Changed 19 months ago by bgK

Owner: set to bgK
Resolution: fixed
Status: newclosed

This should be fixed by commit 2832332e74.

Note: See TracTickets for help on using tickets.