Skip to content

Commit

Permalink
another round of memory leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
tbonfort committed Sep 17, 2012
1 parent 617aec8 commit 218b73f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions mapwcs.c
Expand Up @@ -962,8 +962,9 @@ static int msWCSGetCapabilities(mapObj *map, wcsParamsObj *params, cgiRequestObj

else { /* set default updatesequence */
if(!updatesequence)
updatesequence = msStrdup("0");
params->updatesequence = msStrdup(updatesequence);
params->updatesequence = msStrdup("0");
else
params->updatesequence = msStrdup(updatesequence);
}

/* if a bum section param is passed, throw exception */
Expand Down
2 changes: 1 addition & 1 deletion mapwfs.c
Expand Up @@ -368,8 +368,8 @@ static int msWFSGetFeatureApplySRS(mapObj *map, const char *srs, const char *ver
nTmp = msLoadProjectionStringEPSG(&(sProjTmp), pszOutputSRS);
if (nTmp == 0) {
msProjectRect(&(map->projection), &(sProjTmp), &map->extent);
msFreeProjection(&(sProjTmp));
}
msFreeProjection(&(sProjTmp));
/*check if the srs passed is valid. Assuming that it is an EPSG:xxx format,
Or urn:ogc:def:crs:EPSG:xxx format. */
if (strncasecmp(pszOutputSRS, "EPSG:", 5) == 0 ||
Expand Down
2 changes: 2 additions & 0 deletions mapwfs11.c
Expand Up @@ -336,6 +336,8 @@ int msWFSGetCapabilities11(mapObj *map, wfsParamsObj *params,
xmlNewNs(psRootNode, BAD_CAST namespaceList->namespaces[i].uri, BAD_CAST namespaceList->namespaces[i].prefix);
}
}
msGMLFreeNamespaces(namespaceList);


xmlNewProp(psRootNode, BAD_CAST "version", BAD_CAST params->pszVersion );

Expand Down

0 comments on commit 218b73f

Please sign in to comment.