bindresvport.c: fix a potential resource leakage
Subsystems (2)
PATCH 1/1 bindresvport.c: fix a potential resource leakage
Close the FILE *fp of load_blacklist() in another
return path to avoid potential resource leakage.
Signed-off-by Zhi Li <[email protected]>
--- src/bindresvport.c | 1 + 1 file changed, 1 insertion(+)
src/bindresvport.c +1 -0
@@ -130,6 +130,7 @@ load_blacklist (void)if (list ==NULL ) {free (buf); +fclose (fp);return ; } }
Signature · 1 line
2.31.1
Quoted 13 lines · Zhi Li
Subject:
[PATCH] [nfs/nfs-utils/libtirpc]bindresvport.c: fix a potential resource leakage From:
Zhi Li <[email protected]>
Date:
10/20/22, 2:33 AMTo:
[email protected]
CC:
[email protected], Zhi Li <[email protected]>
Quoted 5 lines
Close the FILE *fp of
load_blacklist()in another
return path to avoid potential resource leakage.Signed-off-by Zhi Li<[email protected]>
Committed...
steved.
Quoted 18 lines
--- src/bindresvport.c | 1 + 1 file changed, 1 insertion(+)src/bindresvport.c +1
-1@@ -130,6 +130,7 @@ load_blacklist (void)if (list ==NULL ) {free (buf); +fclose (fp);return ; } } -- 2.31.1