chiark / gitweb /
Fix a few resource leaks in error paths
[elogind.git] / src / udev / net / link-config.c
index f25afa60c791e8bc356675a7ceb2d773bf56edcc..1a9d780a67bca80b16f4362774001efaef67a307 100644 (file)
@@ -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");