mysqldump: memory leak and needless allocation in compression dictionaries

Description

Seen on e.g. MTR with LeakSanitizer:

The code is

processed_compression_dictionaries is a container of std::strings, making my_strdup redundant (the string will copy itself) and leaking in this case

Environment

None

Smart Checklist

Activity

Show:
Done

Details

Assignee

Reporter

Time tracking

12m logged

Fix versions

Affects versions

Priority

Smart Checklist

Created January 7, 2019 at 6:46 AM
Updated March 6, 2024 at 12:26 PM
Resolved January 8, 2019 at 2:27 PM