[PATCH] msg: Remove unnecessary call of nlmsg_free on known NULL pointer
Tobias Klauser
tklauser at distanz.ch
Mon Jun 2 05:41:55 PDT 2014
On 2014-06-02 at 14:14:08 +0200, Thomas Graf <tgraf at suug.ch> wrote:
> On 05/30/14 at 04:10pm, Tobias Klauser wrote:
> > In nlmsg_convert, if __nlmsg_alloc fails we can return NULL directly
> > instead of unnecessarilyunnecessarily calling nlmsg_free on the NULL pointer.
> ^^^^^^^^^^^^^^^^
> @Thomas: Can you fix the above while commiting?
Oops, sorry about that. I can also resend the patch with the proper
message if you want.
Cheers
More information about the libnl
mailing list