diff options
author | Zhi Li <yieli@redhat.com> | 2022-10-24 13:46:54 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2022-10-24 13:46:54 -0400 |
commit | 55526c52a449907e4d34b829b96141afab530b23 (patch) | |
tree | 6b352a22218027de31b885037eb05448cfc5662e | |
parent | 0fb94eef5062d2657d75eee686fa47238fafa312 (diff) | |
download | ti-rpc-55526c52a449907e4d34b829b96141afab530b23.tar.gz |
bindresvport.c: fix a potential resource leakage
Close the FILE *fp of load_blacklist() in another
return path to avoid potential resource leakage.
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2135405
Signed-off-by: Zhi Li <yieli@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r-- | src/bindresvport.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bindresvport.c b/src/bindresvport.c index 5c0ddcf..efeb1cc 100644 --- a/src/bindresvport.c +++ b/src/bindresvport.c @@ -130,6 +130,7 @@ load_blacklist (void) if (list == NULL) { free (buf); + fclose (fp); return; } } |