Re: [PATCH 1/3] cyclic: stop strdup'ing name in cyclic_register()

2024-05-12 Thread Stefan Roese
On 5/9/24 02:47, Rasmus Villemoes wrote: We are not checking the return value of strdup(), nor freeing the string in cyclic_unregister(). However, all current users either pass a string literal or the dev->name of the client device. So in all cases the name string will live at least as long as t

[PATCH 1/3] cyclic: stop strdup'ing name in cyclic_register()

2024-05-08 Thread Rasmus Villemoes
We are not checking the return value of strdup(), nor freeing the string in cyclic_unregister(). However, all current users either pass a string literal or the dev->name of the client device. So in all cases the name string will live at least as long as the cyclic_info is registered, so just make