]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
- 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 227ae0b3669442020c429edce51b52c7fc662836..75aeef5160e21adb036775ce8c3f8b016658500d 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 */