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 Dec 14, 2020
1 parent be68377 commit d4bac3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion general/g.proj/input.c
Original file line number Diff line number Diff line change
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 d4bac3b

Please sign in to comment.