summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2014-11-02 14:38:03 -0500
committerAnthony G. Basile <blueness@gentoo.org>2014-11-02 14:38:03 -0500
commitdaaa2f764b7b30f91820c36c1891321c72db9a48 (patch)
treefd30668b2872f39569ec35d0a0457693ec9e4205
parent0ba3128e90ae7f0eb7ab55bd7feb58513c454c82 (diff)
libudev: Use correct free function
FILE * wants cleanup_fclose(). Spotted by udev hwdb segfaulting in gnome-continuous' buildroot construction. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
-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 2c18c7e801..f9a192b62b 100644
--- a/src/libudev/libudev.c
+++ b/src/libudev/libudev.c
@@ -118,7 +118,7 @@ _public_ void udev_set_userdata(struct udev *udev, void *userdata)
_public_ struct udev *udev_new(void)
{
struct udev *udev;
- _cleanup_free_ FILE *f;
+ _cleanup_fclose_ FILE *f = NULL;
udev = new0(struct udev, 1);
if (udev == NULL)