[systemd-commits] src/libudev
Colin Walters
walters at kemper.freedesktop.org
Sat Nov 1 13:04:29 PDT 2014
src/libudev/libudev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit ea55caa60c6860e33fa4f1a216c003ff666e9c68
Author: Colin Walters <walters at verbum.org>
Date: Sat Nov 1 15:49:53 2014 -0400
libudev: Use correct free function
FILE * wants cleanup_fclose().
Spotted by udev hwdb segfaulting in gnome-continuous' buildroot
construction.
diff --git a/src/libudev/libudev.c b/src/libudev/libudev.c
index f4f285c..b1649b6 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)
More information about the systemd-commits
mailing list