qemu-nbd.c (f5edb014ed221db6942225ec675aafe2675632dd) | qemu-nbd.c (f8a83245d9ec685bc6aa6173d6765fe03e20688f) |
---|---|
1/* 2 * Copyright (C) 2005 Anthony Liguori <anthony@codemonkey.ws> 3 * 4 * Network Block Device 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; under version 2 of the License. --- 455 unchanged lines hidden (view full) --- 464 nbd_negotiate(sharing_fds[nb_fds], fd_size) != -1) { 465 if (sharing_fds[nb_fds] > max_fd) 466 max_fd = sharing_fds[nb_fds]; 467 nb_fds++; 468 } 469 } 470 } 471 } while (persistent || nb_fds > 1); | 1/* 2 * Copyright (C) 2005 Anthony Liguori <anthony@codemonkey.ws> 3 * 4 * Network Block Device 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; under version 2 of the License. --- 455 unchanged lines hidden (view full) --- 464 nbd_negotiate(sharing_fds[nb_fds], fd_size) != -1) { 465 if (sharing_fds[nb_fds] > max_fd) 466 max_fd = sharing_fds[nb_fds]; 467 nb_fds++; 468 } 469 } 470 } 471 } while (persistent || nb_fds > 1); |
472 qemu_free(data); | 472 qemu_vfree(data); |
473 474 close(sharing_fds[0]); 475 bdrv_close(bs); 476 qemu_free(sharing_fds); 477 if (socket) 478 unlink(socket); 479 480 return 0; 481} | 473 474 close(sharing_fds[0]); 475 bdrv_close(bs); 476 qemu_free(sharing_fds); 477 if (socket) 478 unlink(socket); 479 480 return 0; 481} |