mirror of
https://github.com/systemd/systemd.git
synced 2026-07-23 16:00:06 +00:00
libudev: Use correct free function
FILE * wants cleanup_fclose(). Spotted by udev hwdb segfaulting in gnome-continuous' buildroot construction.
This commit is contained in:
Notes:
Lennart Poettering
2014-11-04 18:13:00 +01:00
Backport: bugfix
@@ -119,7 +119,7 @@ _public_ struct udev *udev_new(void)
|
||||
{
|
||||
struct udev *udev;
|
||||
const char *env;
|
||||
_cleanup_free_ FILE *f = NULL;
|
||||
_cleanup_fclose_ FILE *f = NULL;
|
||||
|
||||
udev = new0(struct udev, 1);
|
||||
if (udev == NULL)
|
||||
|
||||
Reference in New Issue
Block a user