[MDEV-9987] gen_lex_hash leaks memory, making LeakSanitizer builds fail Created: 2016-04-26 Updated: 2016-06-29 Resolved: 2016-04-26 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Compiling |
| Affects Version/s: | 10.0.24 |
| Fix Version/s: | 5.5.50, 10.0.25, 10.1.14 |
| Type: | Bug | Priority: | Minor |
| Reporter: | David Gow | Assignee: | Sergey Vojtovich |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | foundation | ||
| Environment: |
Ubuntu clang version 3.6.0-2ubuntu1~trusty1 w/ LeakSanitizer, |
||
| Description |
|
sql/gen_lex_hash.cc leaks memory, causing builds with LeakSanitizer enabled to fail.
As the memory leak itself is not a real issue, LeakSanitizer can be disabled for gen_lex_hash by including a special function in the binary:
|
| Comments |
| Comment by Sergey Vojtovich [ 2016-04-26 ] |
|
David, thanks for this bug report. We decided to fix memory leak itself: https://github.com/MariaDB/server/commit/4f1ad43992d75676687f29da96dd7c4147247a8f |