Browse Source

close vector

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@46308 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 14 years ago
parent
commit
6e2a866c9c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      vector/v.db.connect/main.c

+ 1 - 0
vector/v.db.connect/main.c

@@ -164,6 +164,7 @@ int main(int argc, char **argv)
 	    /* it is ok if a vector map is not connected o an attribute table */
 	    G_message(_("Map <%s> is not connected to a database"),
 			  input);
+	    Vect_close(&Map);
 	    exit(EXIT_SUCCESS);
 	}
 	else {			/* num_dblinks > 0 */