• L
    storage: fix unlikely memory leak in rbd backend · 57f39e03
    Laine Stump 提交于
    virStorageBackendRBDRefreshPool() first allocates an array big enough
    to hold 1024 names, then calls rbd_list(), which returns ERANGE if the
    array isn't big enough. When that happens, the VIR_ALLOC_N is called
    again with a larger size. Unfortunately, the original array isn't
    freed before allocating a new one.
    57f39e03
storage_backend_rbd.c 17.0 KB