dm: free entries in pci_businfo[] when deinit

Entries of pci_businfo[] allocated in function "pci_parse_slot"
using calloc need to be freed when deinit.

Signed-off-by: Jie Deng <jie.deng@intel.com>
Reviewed-by: Yin Fengwei <fengwei.yin@intel.com>
Reviewed-by: Anthony Xu <anthony.xu@intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
This commit is contained in:
Jie Deng 2018-05-15 18:28:31 +08:00 committed by Jack Ren
parent 69d9918ddc
commit 7aaff68798
1 changed files with 3 additions and 0 deletions

View File

@ -1272,6 +1272,9 @@ deinit_pci(struct vmctx *ctx)
func, fi);
}
}
pci_businfo[bus] = NULL;
free(bi);
}
}