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:
Sandro Santilli 2012-01-09 10:34:34 +00:00
parent 37e1ffa2d6
commit b7104b77c1

View file

@ -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 */