[vlc-devel] [PATCH] Remove VLC_MALLOC attribute on vlc_custom_create()

Romain Vimont rom1v at videolabs.io
Sun Apr 22 16:57:26 CEST 2018


On Wed, Apr 18, 2018 at 06:37:53PM +0300, Rémi Denis-Courmont wrote:
> Le keskiviikkona 18. huhtikuuta 2018, 11.48.47 EEST Rémi Denis-Courmont a 
> écrit :
> > There may be other occurrences.
> 
> There are. I did not make an exhaustive search, but at least some of the block 
> allocators seem to have the problem too.

Indeed, there are other occurrences.

> This tells the compiler that a function is malloc-like

What do you think about removing all VLC_MALLOC attributes? After a
quick search, it seems to me that except xmalloc() (which is deprecated
and does not even declare the VLC_MALLOC attribute), there are no
malloc-like functions.


More information about the vlc-devel mailing list