commit | a4c13869f95cb45d657cc1df3803f633221d4971 | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Tue Aug 18 12:11:02 2020 +0200 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Wed Sep 30 19:11:36 2020 +0200 |
tree | 8ebf036c107ff7aad647eb31d070fafe7115bb82 | |
parent | 05512f55aaca92505b75d8fa6818b088a5eeb07f [diff] |
oslib: do not call g_strdup from qemu_get_exec_dir Just return the directory without requiring the caller to free it. This also removes a bogus check for NULL in os_find_datadir and module_load_one; g_strdup of a static variable cannot return NULL. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>