]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: keep gzFile gzf local to load_zlib()
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 12 Feb 2024 17:23:03 +0000 (17:23 +0000)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 30 Apr 2024 17:33:52 +0000 (12:33 -0500)
commit09256b9a4f79976b28d2b15c4be3ee805d57edff
treebe94871c4da5b16c9151d1e7cd1e7ba0be14dcc5
parentd6cd6c74d2d225306cc50a8ca9cc03cf015c5c4b
libkmod: keep gzFile gzf local to load_zlib()

There is no need to keep the root gzFile context open for the whole
duration. Once we've copied the decompressed module to file->memory we
can close the handle.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
libkmod/libkmod-file.c