Skip to content

Commit

Permalink
fix: free pszSLDTmpFile buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
gogglesguy committed Sep 19, 2016
1 parent bf2ac0d commit 08204df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mapogcsld.c
Expand Up @@ -106,6 +106,7 @@ int msSLDApplySLDURL(mapObj *map, char *szURL, int iLayer,
unlink(pszSLDTmpFile);
msSetError(MS_WMSERR, "Could not open SLD %s and save it in a temporary file. Please make sure that the sld url is valid and that the temporary path is set. The temporary path can be defined for example by setting TMPPATH in the map file. Please check the MapServer documentation on temporary path settings.", "msSLDApplySLDURL", szURL);
}
msFree(pszSLDTmpFile);
if (pszSLDbuf)
nStatus = msSLDApplySLD(map, pszSLDbuf, iLayer, pszStyleLayerName, ppszLayerNames);
}
Expand Down

0 comments on commit 08204df

Please sign in to comment.