Skip to content

Commit

Permalink
g.proj: fix segault issue #1163 (#1170)
Browse files Browse the repository at this point in the history
  • Loading branch information
metzm committed Feb 19, 2021
1 parent 85cc606 commit d1b80c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion general/g.proj/input.c
Expand Up @@ -471,10 +471,11 @@ int input_georef(char *geofile)
geofile);

set_authnamecode(hSRS);
OSRDestroySpatialReference(hSRS);

if (ogr_ds)
OGR_DS_Destroy(ogr_ds);
else
OSRDestroySpatialReference(hSRS);

return ret;
}
Expand Down

0 comments on commit d1b80c8

Please sign in to comment.