{"action":"closed","issue":{"url":"https://api.github.com/repos/mapserver/mapserver/issues/3594","labels_url":"https://api.github.com/repos/mapserver/mapserver/issues/3594/labels{/name}","comments_url":"https://api.github.com/repos/mapserver/mapserver/issues/3594/comments","events_url":"https://api.github.com/repos/mapserver/mapserver/issues/3594/events","html_url":"https://github.com/mapserver/mapserver/issues/3594","id":3962349,"number":3594,"title":"Memory leak in filter thing in wfs_get_feature_id.xml","user":{"login":"mapserver-bot","id":1608057,"avatar_url":"https://avatars.githubusercontent.com/u/1608057?v=3","gravatar_id":"","url":"https://api.github.com/users/mapserver-bot","html_url":"https://github.com/mapserver-bot","followers_url":"https://api.github.com/users/mapserver-bot/followers","following_url":"https://api.github.com/users/mapserver-bot/following{/other_user}","gists_url":"https://api.github.com/users/mapserver-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/mapserver-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapserver-bot/subscriptions","organizations_url":"https://api.github.com/users/mapserver-bot/orgs","repos_url":"https://api.github.com/users/mapserver-bot/repos","events_url":"https://api.github.com/users/mapserver-bot/events{/privacy}","received_events_url":"https://api.github.com/users/mapserver-bot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapserver/mapserver/labels/Bug","name":"Bug","color":"fc2929"},{"url":"https://api.github.com/repos/mapserver/mapserver/labels/WFS%20Server","name":"WFS Server","color":"d7e102"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2012-04-03T23:55:05Z","updated_at":"2015-11-01T17:36:08Z","closed_at":"2015-11-01T17:36:08Z","body":"**Reporter: rouault**\n**Date: 2010/10/29 - 22:54**\n**Trac URL:** http://trac.osgeo.org/mapserver/ticket/3594\nvalgrind --leak-check=full mapserv \"QUERY_STRING=map=wfs_simple.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=province&featureid=province.Quebec\"\r\n\r\nshows :\r\n\r\n\n```\r\n==2482== 4 bytes in 1 blocks are definitely lost in loss record 1 of 15\r\n==2482==    at 0x4C274A8: malloc (vg_replace_malloc.c:236)\r\n==2482==    by 0x4ABCD9: msLayerWhichItems (maplayer.c:403)\r\n==2482==    by 0x48D630: msQueryByRect (mapquery.c:765)\r\n==2482==    by 0x5382B8: FLTApplySimpleSQLFilter (mapogcfilter.c:1188)\r\n==2482==    by 0x53878E: FLTLayerApplyPlainFilterToLayer (mapogcfilter.c:1338)\r\n==2482==    by 0x4ADBDD: msLayerApplyPlainFilterToLayer (maplayer.c:1064)\r\n==2482==    by 0x5386C8: FLTApplyFilterToLayer (mapogcfilter.c:1292)\r\n==2482==    by 0x5177D3: msWFSGetFeature (mapwfs.c:2304)\r\n==2482==    by 0x518ED0: msWFSDispatch (mapwfs.c:2813)\r\n==2482==    by 0x50D253: msOWSDispatch (mapows.c:86)\r\n==2482==    by 0x44E76C: main (mapserv.c:1271)\r\n==2482== \r\n==2482== 17 (8 direct, 9 indirect) bytes in 1 blocks are definitely lost in loss record 4 of 15\r\n==2482==    at 0x4C267CC: calloc (vg_replace_malloc.c:467)\r\n==2482==    by 0x4ABC85: msLayerWhichItems (maplayer.c:398)\r\n==2482==    by 0x48D630: msQueryByRect (mapquery.c:765)\r\n==2482==    by 0x5382B8: FLTApplySimpleSQLFilter (mapogcfilter.c:1188)\r\n==2482==    by 0x53878E: FLTLayerApplyPlainFilterToLayer (mapogcfilter.c:1338)\r\n==2482==    by 0x4ADBDD: msLayerApplyPlainFilterToLayer (maplayer.c:1064)\r\n==2482==    by 0x5386C8: FLTApplyFilterToLayer (mapogcfilter.c:1292)\r\n==2482==    by 0x5177D3: msWFSGetFeature (mapwfs.c:2304)\r\n==2482==    by 0x518ED0: msWFSDispatch (mapwfs.c:2813)\r\n==2482==    by 0x50D253: msOWSDispatch (mapows.c:86)\r\n==2482==    by 0x44E76C: main (mapserv.c:1271)\r\n\r\n```\n\r\n\r\nNot familiar enough with filter, I couldn't find how to fix that.\r\n"}}