]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r337185:
authormav <mav@FreeBSD.org>
Wed, 3 Oct 2018 14:48:17 +0000 (14:48 +0000)
committermav <mav@FreeBSD.org>
Wed, 3 Oct 2018 14:48:17 +0000 (14:48 +0000)
commit7c3b10acaf13ff315189e243ed5aa7a4121d577a
treed797b42f73326e59a95664a8f32f32d8e73e2f2d
parent9b6c15ad672b64a334f650723380e8406e7089f8
MFC r337185:
MFV r337184: 9457 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.

illumos/illumos-gate@ddfe901b12348d31c500fb57f9174e88860a4061

Reviewed by: Matt Ahrens <matt@delphix.com>
Reviewed by: Serapheim Dimitropoulos <serapheim.dimitro@delphix.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Author:     sara hartse <sara.hartse@delphix.com>
cddl/contrib/opensolaris/lib/libzfs/common/libzfs_import.c