mbox series

[0/5] Memory issues found by coverity

Message ID 1620775324-23984-1-git-send-email-bmarzins@redhat.com (mailing list archive)
Headers show
Series Memory issues found by coverity | expand

Message

Benjamin Marzinski May 11, 2021, 11:21 p.m. UTC
This is collection of issues found by coverity. The first three patches
deal with ev_remove_path() removing the path, but returning failure,
causing a use-after-free error. The last two patches fix memory leaks.

Benjamin Marzinski (5):
  multipathd: don't fail to remove path once the map is removed
  multipathd: remove duplicate orphan_paths in flush_map
  multipathd: make ev_remove_path return success on path removal
  multipath: free vectors in configure
  kpartx: Don't leak memory when getblock returns NULL

 kpartx/kpartx.c            |  2 ++
 libmultipath/structs_vec.c |  3 +--
 multipath/main.c           |  7 ++++++-
 multipathd/main.c          | 20 ++++++++++++--------
 4 files changed, 21 insertions(+), 11 deletions(-)