[systemd-devel] [PATCH] dbus1-generator: fix resource leak on file pointer f

Cristian Rodríguez crrodriguez at opensuse.org
Thu Jun 12 09:53:47 PDT 2014


El 12/06/14 12:44, Colin King escribió:
> From: Colin Ian King <colin.king at canonical.com>
> 
> File pointer f is not closed on the multiple error exit paths
> or on the end of create_dbus_files() causing multiple points
> of a resource leak.  Close f on the appropriate paths.

There is no resource leak.. whatsoever. _cleanup_fclose_ takes care of
that already.


-- 
Cristian
"I don't know the key to success, but the key to failure is trying to
please everybody."


More information about the systemd-devel mailing list