uxc.c: fix coverity resource leak warning
[project/procd.git] / uxc.c
diff --git a/uxc.c b/uxc.c
index 5163b9a3e265e97c361c6d90f30a370fa8103658..722176370de7ea0e8ef808520581471da28e4019 100644 (file)
--- a/uxc.c
+++ b/uxc.c
@@ -705,6 +705,7 @@ static int uxc_set(char *name, char *path, bool autostart, bool add, char *pidfi
        }
 
        blob_buf_free(&req);
+       close(f);
 
        return 0;
 }