[vlc-devel] [PATCH] Remove VLC_MALLOC attribute on vlc_custom_create()
Rémi Denis-Courmont
remi at remlab.net
Sun Apr 22 20:16:49 CEST 2018
Le 22 avril 2018 16:57:26 GMT+02:00, Romain Vimont <rom1v at videolabs.io> a écrit :
>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.
>_______________________________________________
>vlc-devel mailing list
>To unsubscribe or modify your subscription options:
>https://mailman.videolan.org/listinfo/vlc-devel
I don't share your analysis. There are plenty of functions returning "new" memory without any pointers.
--
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.
More information about the vlc-devel
mailing list