[systemd-devel] misuse of _cleanup_free_ in bus_message_from_header() ?

eshark eshark77 at 163.com
Tue Sep 1 01:58:51 PDT 2015


Hi, All,

       I found that in bus-message.c  , the  bus_message_from_header() seems to misuse the _cleanup_free_ ,

       int bus_message_from_header()
       {
               
             _cleanup_free_  sd_bus_message *m = NULL;
      ==>
             _cleanup_bus_message_unref_  sd_bus_message *m = NULL;
   
       }

      Is it right?


   Thanks!

  Li Cheng


More information about the systemd-devel mailing list