[MXS-166] Memory leak when creating a new event Created: 2015-05-21  Updated: 2015-05-27  Resolved: 2015-05-26

Status: Closed
Project: MariaDB MaxScale
Component/s: Core
Affects Version/s: 1.1.0
Fix Version/s: 1.2.0

Type: Bug Priority: Critical
Reporter: markus makela Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None

Attachments: File leak.log    
Issue Links:
Blocks
is blocked by MDEV-8204 Executing a CREATE EVENT query causes... Closed

 Description   

Executing the following:

CREATE EVENT myevent
ON SCHEDULE AT CURRENT_TIMESTAMP + INTERVAL 1 HOUR
DO
UPDATE t1 SET id = id + 1;

causes a memory leak when the query is parsed.

Attached is the valgrind output.



 Comments   
Comment by markus makela [ 2015-05-26 ]

Added a call to thd->end_statement in parsing_info_done.

Generated at Thu Feb 08 03:57:17 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.