Revision 6d1cc321

b/kvm-all.c
1409 1409
    return 0;
1410 1410

  
1411 1411
err:
1412
    if (s) {
1413
        if (s->vmfd >= 0) {
1414
            close(s->vmfd);
1415
        }
1416
        if (s->fd != -1) {
1417
            close(s->fd);
1418
        }
1412
    if (s->vmfd >= 0) {
1413
        close(s->vmfd);
1414
    }
1415
    if (s->fd != -1) {
1416
        close(s->fd);
1419 1417
    }
1420 1418
    g_free(s);
1421 1419

  

Also available in: Unified diff