❦ 1 avril 2021 09:41 +01, Daniel P. Berrangé:
>> + t = calloc(1, sizeof(struct type41_instance));
>> + if (!t) {
>> + error_setg(errp,
>> + "Unable to allocate memory for a new type 41
>> instance");
>> + return;
>> + }
>
> QEMU uses GLib allocation functions throughout, which abort
> on OOM. So replace this with g_new0.
Ack. Will be fixed on the next version. Thanks!
--
Make input easy to proofread.
- The Elements of Programming Style (Kernighan & Plauger)
