libzfs_import.c:add_config() has a memory leak
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.
Updated by Electric Monk over 5 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
commit ddfe901b12348d31c500fb57f9174e88860a4061 Author: sara hartse <firstname.lastname@example.org> Date: 2018-06-01T16:22:51.000Z 9457 libzfs_import.c:add_config() has a memory leak Reviewed by: Matt Ahrens <email@example.com> Reviewed by: Serapheim Dimitropoulos <firstname.lastname@example.org> Approved by: Robert Mustacchi <email@example.com>