Reviewed by: Matt Ahrens <>
Reviewed by: Serapheim Dimitropoulos <>

A memory leak occurs on lines 209 and 213 because the config is not freed in 
the error case.
The interface to add_config() seems less than ideal - it would be better if it 
copied any data
necessary from the config and the caller freed it.

Upstream bug: DLPX-49583
You can view, comment on, or merge this pull request online at:

-- Commit Summary --

  * 9457 libzfs_import.c:add_config() has a memory leak

-- File Changes --

    M usr/src/lib/libzfs/common/libzfs_import.c (14)

-- Patch Links --

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:

openzfs: openzfs-developer
Delivery options:

Reply via email to