On Thu, 27 Jul 2023 at 15:56, Peter Maydell <peter.mayd...@linaro.org> wrote: > The only real reason is just consistency -- the project uses > the glib malloc wrappers, and in theory any use of raw > malloc() ought to be either: > * something that's third party library code (eg libdecnumber) > * because it's going into a standalone program that doesn't > link against glib > * for a special case reason which is documented in a > nearby comment (eg because the memory is going to be > passed to some library which documents that it will assume > it can free() the memory)
I wrote up a gitlab bite-sized-task issue for the remaining conversions which goes into a bit more detail about some of the pitfalls to watch out for, and made the bitesizedtasks wiki page link to that: https://gitlab.com/qemu-project/qemu/-/issues/1798 thanks -- PMM