Browse Source

Fix descriptor leak

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@33058 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 17 years ago
parent
commit
d33cf1f678
1 changed files with 3 additions and 0 deletions
  1. 3 0
      lib/proj/ellipse.c

+ 3 - 0
lib/proj/ellipse.c

@@ -261,6 +261,9 @@ struct ellps_list *read_ellipsoid_table(int fatal)
 	    continue;
 	}
     }
+
+    fclose(fd);
+
     if (!err)
 	return outputlist;