aboutsummaryrefslogtreecommitdiff
path: root/chardev/char-udp.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2021-07-27 17:54:15 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2021-07-30 12:04:01 +0200
commit243a545bffc7e86c0f5ae97c0f7d32c079ab78a3 (patch)
tree97834e22e58a4718273002e7dd6599cc2a35d9bd /chardev/char-udp.c
parentd4b3d152ee005825520dc171e1e650174ae5ebe6 (diff)
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 'chardev/char-udp.c')
0 files changed, 0 insertions, 0 deletions