mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-04-12 18:10:24 +08:00
Added a couple items to .gitignore.
Corrected an issue reported by Coverity static analysis where memory was allocated but was not freed.
This commit is contained in:
parent
4a894dc154
commit
0af7499eb4
2
.gitignore
vendored
2
.gitignore
vendored
@ -4,3 +4,5 @@ doxygen*.tmp
|
||||
\#*.*\#
|
||||
autom4te.cache
|
||||
myhtml
|
||||
CMakeLists.txt.user
|
||||
scan-build
|
||||
|
@ -693,8 +693,10 @@ ocmktmp(const char* base, char** tmpnamep, int* fdp)
|
||||
|
||||
tmpname = (char*)malloc(tmpsize);
|
||||
if(tmpname == NULL) return OC_ENOMEM;
|
||||
if(!occopycat(tmpname,tmpsize,1,base))
|
||||
return OC_EOVERRUN;
|
||||
if(!occopycat(tmpname,tmpsize,1,base)) {
|
||||
free(tmpname);
|
||||
return OC_EOVERRUN;
|
||||
}
|
||||
#ifdef HAVE_MKSTEMP
|
||||
if(!occoncat(tmpname,tmpsize,1,"XXXXXX"))
|
||||
return OC_EOVERRUN;
|
||||
|
Loading…
x
Reference in New Issue
Block a user