summaryrefslogtreecommitdiffstats
path: root/src/libudev
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2014-11-01 20:49:53 +0100
committerColin Walters <walters@verbum.org>2014-11-01 21:04:25 +0100
commitea55caa60c6860e33fa4f1a216c003ff666e9c68 (patch)
treecba14a5ad30625bd311f433eeaef51dd3437c181 /src/libudev
parentscsi_id: fix usage spelling (diff)
downloadsystemd-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.c2
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)