]> Git Repo - qemu.git/blobdiff - tests/libqtest.c
block: drop bs_snapshots global variable
[qemu.git] / tests / libqtest.c
index 884f959992e359573282e35e2e77d8efd0aa400b..879ffe91dc26e688c353a446cf87b06c4ba80a23 100644 (file)
@@ -99,8 +99,8 @@ static pid_t qtest_qemu_pid(QTestState *s)
         if (fgets(buffer, sizeof(buffer), f)) {
             pid = atoi(buffer);
         }
+        fclose(f);
     }
-    fclose(f);
     return pid;
 }
 
This page took 0.020701 seconds and 4 git commands to generate.