diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2021-07-27 17:54:15 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-07-30 12:04:01 +0200 |
| commit | 243a545bffc7e86c0f5ae97c0f7d32c079ab78a3 (patch) | |
| tree | 97834e22e58a4718273002e7dd6599cc2a35d9bd /scripts/qapi/types.py | |
| parent | d4b3d152ee005825520dc171e1e650174ae5ebe6 (diff) | |
| download | focaccia-qemu-243a545bffc7e86c0f5ae97c0f7d32c079ab78a3.tar.gz focaccia-qemu-243a545bffc7e86c0f5ae97c0f7d32c079ab78a3.zip | |
coverity-model: make g_free a synonym of free
Recently, Coverity has started complaining about using g_free() to free memory areas allocated by GLib functions not included in model.c, such as g_strfreev. This unfortunately goes against the GLib documentation, which suggests that g_malloc() should be matched with g_free() and plain malloc() with free(); since GLib 2.46 however g_malloc() is hardcoded to always use the system malloc implementation, and g_free is just "free" plus a tracepoint. Therefore, this should not cause any problem in practice. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/qapi/types.py')
0 files changed, 0 insertions, 0 deletions