]> git.proxmox.com Git - mirror_qemu.git/commit
HACKING: document preference for g_new instead of g_malloc
authorMurilo Opsfelder Araujo <muriloo@linux.ibm.com>
Tue, 15 May 2018 13:49:50 +0000 (10:49 -0300)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 20 May 2018 05:32:09 +0000 (08:32 +0300)
commitf7c922ed3d8e3cb54febbdc594ce9f4400e0d290
tree15efe2700df2e804c894aa7edeab4d46d891853b
parent0b816e986dd5b39ff5dfacd6c74e012b3b4c09e1
HACKING: document preference for g_new instead of g_malloc

This patch documents the preference for g_new instead of g_malloc. The
reasons were adapted from commit b45c03f585ea9bb1af76c73e82195418c294919d.

Discussion in QEMU's mailing list:
  http://lists.nongnu.org/archive/html/qemu-devel/2018-05/msg03238.html

Cc: qemu-devel@nongnu.org
Cc: David Hildenbrand <david@redhat.com>
Cc: Eduardo Habkost <ehabkost@redhat.com>
Cc: Markus Armbruster <armbru@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Murilo Opsfelder Araujo <muriloo@linux.ibm.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
HACKING