From 2fd069b18e525860514a70d3ea08410ca122d3e2 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Sun, 15 Dec 2013 16:25:04 -0500 Subject: Fix a few resource leaks in error paths https://bugzilla.redhat.com/show_bug.cgi?id=1043304 --- src/udev/net/link-config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/udev') diff --git a/src/udev/net/link-config.c b/src/udev/net/link-config.c index f25afa60c7..1a9d780a67 100644 --- a/src/udev/net/link-config.c +++ b/src/udev/net/link-config.c @@ -149,7 +149,7 @@ void link_config_ctx_free(link_config_ctx *ctx) { static int load_link(link_config_ctx *ctx, const char *filename) { link_config *link; - FILE *file; + _cleanup_fclose_ FILE *file; int r; file = fopen(filename, "re"); -- cgit v1.2.3-54-g00ecf