Explorar el Código

Fix descriptor leak

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@33052 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements hace 17 años
padre
commit
69cacd527f
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      lib/proj/datum.c

+ 3 - 0
lib/proj/datum.c

@@ -304,6 +304,7 @@ struct gpj_datum_transform_list *GPJ_get_datum_transform_by_name(const char
 	}
     }
 
+    fclose(fd);
 
     return outputlist;
 
@@ -366,6 +367,8 @@ struct datum_list *read_datum_table(void)
 	count++;
     }
 
+    fclose(fd);
+
     return outputlist;
 }