[Spice-devel] [PATCH spice-server 07/16] test-display-base: Use spice allocation helpers
Christophe Fergeau
cfergeau at redhat.com
Thu Sep 7 07:51:25 UTC 2017
On Wed, Sep 06, 2017 at 11:49:52AM -0400, Frediano Ziglio wrote:
> >
> > On Mon, Sep 04, 2017 at 11:57:15AM +0100, Frediano Ziglio wrote:
> > > Do not use calloc and malloc directly without checking
> > > the result. Use instead spice functions to get a nice
> > > error in case of allocation failures.
> >
> > I'd tend to switch to g_new0 and friends rather than spice_xxx...
> >
> > Christophe
> >
>
> But this would require change all the free too, I would
> put this change in a follow up patch instead.
"all the frees" being less than 10 occurrences...
Anyway, Acked-by: Christophe Fergeau <cfergeau at redhat.com>
More information about the Spice-devel
mailing list