module: Simplify module_load()
commitf9e13f8fd87710063f9fa0feaf7de0348b32612a
authorAndreas Färber <afaerber@suse.de>
Tue, 15 Jul 2014 14:04:25 +0000 (15 16:04 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 18 Jul 2014 12:57:35 +0000 (18 14:57 +0200)
tree2e33d37b88ec8fe4b1c81f8e9ddfc671bb44f779
parentf52b7687825ae7b998ce790cd6028ff760b20b4c
module: Simplify module_load()

The file path is not used for error reporting, so we can free it
directly after use.

Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
util/module.c