Browse Source

bug fixing segfault if no soilmoisture flag

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@44975 15284696-431f-4ddb-bdfa-cd5b030d7da7
Yann Chemin 14 năm trước cách đây
mục cha
commit
82c2a84e50
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      imagery/i.eb.evapfr/main.c

+ 2 - 2
imagery/i.eb.evapfr/main.c

@@ -169,9 +169,9 @@ int main(int argc, char *argv[])
     Rast_close(infd_g0);
     Rast_close(infd_h0);
     G_free(outrast1);
-    G_free(outrast2);
+    Rast_close(outfd1);
     if (makin) {
-	Rast_close(outfd1);
+        G_free(outrast2);
 	Rast_close(outfd2);
     }
     Rast_short_history(result1, "raster", &history);