Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 1455339 Details for
Bug 1596265
mmkubernetes - memory error - calling fclose on NULL
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
0001-check-for-null-fp-before-fclose.patch
0001-check-for-null-fp-before-fclose.patch (text/plain), 753 bytes, created by
Rich Megginson
on 2018-06-28 13:47:30 UTC
(
hide
)
Description:
0001-check-for-null-fp-before-fclose.patch
Filename:
MIME Type:
Creator:
Rich Megginson
Created:
2018-06-28 13:47:30 UTC
Size:
753 bytes
patch
obsolete
>From 40ead589f99cb94d21dbe505b3dc8f34c9dc11e1 Mon Sep 17 00:00:00 2001 >From: Rich Megginson <rmeggins@redhat.com> >Date: Wed, 27 Jun 2018 13:40:10 -0600 >Subject: [PATCH] check for null fp before fclose > >--- > contrib/mmkubernetes/mmkubernetes.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > >diff --git a/contrib/mmkubernetes/mmkubernetes.c b/contrib/mmkubernetes/mmkubernetes.c >index 6aba930e3..1892cc10c 100644 >--- a/contrib/mmkubernetes/mmkubernetes.c >+++ b/contrib/mmkubernetes/mmkubernetes.c >@@ -737,8 +737,10 @@ CODESTARTcreateWrkrInstance > free(token); > token = NULL; > } >- fclose(fp); >- fp = NULL; >+ if (fp) { >+ fclose(fp); >+ fp = NULL; >+ } > } > if (tokenHdr) { > hdr = curl_slist_append(hdr, tokenHdr); >-- >2.14.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1596265
: 1455339