mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-24 09:02:37 +00:00
Fix memory leak in shapefile loader (#1436)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8709 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
parent
37e1ffa2d6
commit
b7104b77c1
|
@ -1572,6 +1572,8 @@ ShpLoaderGenerateSQLRowStatement(SHPLOADERSTATE *state, int item, char **strreco
|
|||
return SHPLOADERERR;
|
||||
}
|
||||
strncpy(val, utf8str, MAXVALUELEN);
|
||||
free(utf8str);
|
||||
|
||||
}
|
||||
|
||||
/* Escape attribute correctly according to dump format */
|
||||
|
|
Loading…
Reference in a new issue