]> git.proxmox.com Git - ovs.git/commitdiff
tests: rstp close input file
authorAlin Serdean <aserdean@cloudbasesolutions.com>
Fri, 27 Jan 2017 07:16:28 +0000 (07:16 +0000)
committerGurucharan Shetty <guru@ovn.org>
Fri, 27 Jan 2017 22:41:15 +0000 (14:41 -0800)
Close the 'input_file' after data is read.

Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Signed-off-by: Gurucharan Shetty <guru@ovn.org>
tests/test-rstp.c

index 2ee8c7ea06434372956cc85fcc507408185b44ba..7bcff83f3ab6e24e3853cc523358479169c806fc 100644 (file)
@@ -691,6 +691,7 @@ test_rstp_main(int argc, char *argv[])
         }
     }
     free(token);
+    fclose(input_file);
 
     for (i = 0; i < tc->n_lans; i++) {
         struct lan *lan = tc->lans[i];