- close file handle after reading in cudf file BASE-SuSE-Code-12_2-Branch
authorMichael Schroeder <mls@suse.de>
Wed, 27 Jun 2012 12:48:52 +0000 (14:48 +0200)
committerMichael Schroeder <mls@suse.de>
Wed, 27 Jun 2012 12:48:52 +0000 (14:48 +0200)
tools/cudftest.c

index 227ae0b..75aeef5 100644 (file)
@@ -87,6 +87,8 @@ main(int argc, char **argv)
   repo = repo_create(pool, "repo");
   queue_init(&job);
   repo_add_cudf(repo, installed, fp, &job, 0);
+  fclose(fp);
+
   pool_createwhatprovides(pool);
 
   /* debug */