diff options
author | Colin Walters <walters@verbum.org> | 2014-11-01 20:49:53 +0100 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2014-11-01 21:04:25 +0100 |
commit | ea55caa60c6860e33fa4f1a216c003ff666e9c68 (patch) | |
tree | cba14a5ad30625bd311f433eeaef51dd3437c181 /src/libudev | |
parent | scsi_id: fix usage spelling (diff) | |
download | systemd-ea55caa60c6860e33fa4f1a216c003ff666e9c68.tar.xz systemd-ea55caa60c6860e33fa4f1a216c003ff666e9c68.zip |
libudev: Use correct free function
FILE * wants cleanup_fclose().
Spotted by udev hwdb segfaulting in gnome-continuous' buildroot
construction.
Diffstat (limited to 'src/libudev')
-rw-r--r-- | src/libudev/libudev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libudev/libudev.c b/src/libudev/libudev.c index f4f285c6e0..b1649b6514 100644 --- a/src/libudev/libudev.c +++ b/src/libudev/libudev.c @@ -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) |