Since we only call this once, it is not a bad
leak, but still.
Change-Id: Id85766738c3ece4f2d1860f7d101e4446a894aed
Signed-off-by: Frank Lichtenheld <[email protected]>
---
src/openvpn/dco_linux.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/openvpn/dco_linux.c b/src/openvpn/dco_linux.c
index 41540c0f..796e6f25 100644
--- a/src/openvpn/dco_linux.c
+++ b/src/openvpn/dco_linux.c
@@ -1020,6 +1020,7 @@ dco_version_string(struct gc_arena *gc)
if (!fgets(BSTR(&out), BCAP(&out), fp))
{
+ fclose(fp);
return "ERR";
}
@@ -1031,6 +1032,7 @@ dco_version_string(struct gc_arena *gc)
*nl = '\0';
}
+ fclose(fp);
return BSTR(&out);
}
--
2.34.1
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel