summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2014-11-01 15:49:53 -0400
committerColin Walters <walters@verbum.org>2014-11-01 16:04:25 -0400
commitea55caa60c6860e33fa4f1a216c003ff666e9c68 (patch)
treecba14a5ad30625bd311f433eeaef51dd3437c181
parent85f13fce322e6303e7e4e55cb43104f81827f36b (diff)
libudev: Use correct free function
FILE * wants cleanup_fclose(). Spotted by udev hwdb segfaulting in gnome-continuous' buildroot construction.
-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)