test-stp: Fix leak of open file descriptor for input_file
authorThomas Graf <tgraf@noironetworks.com>
Mon, 1 Sep 2014 16:09:57 +0000 (18:09 +0200)
committerBen Pfaff <blp@nicira.com>
Tue, 2 Sep 2014 15:36:58 +0000 (08:36 -0700)
Signed-off-by: Thomas Graf <tgraf@noironetworks.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
tests/test-stp.c

index 9ca9c6c..c4e5933 100644 (file)
@@ -666,6 +666,7 @@ test_stp_main(int argc, char *argv[])
         free(bridge);
     }
     free(tc);
+    fclose(input_file);
 }
 
 OVSTEST_REGISTER("test-stp", test_stp_main);