mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-21 19:55:20 -05:00
Repair a file handle leak in wsprd
This commit is contained in:
parent
d13a5d04e8
commit
82e3949b8b
@ -677,6 +677,7 @@ unsigned long writec2file(char *c2filename, int trmin, double freq
|
||||
}
|
||||
nwrite = fwrite(buffer, sizeof(float), 2*45000, fp);
|
||||
free(buffer);
|
||||
fclose(fp);
|
||||
if( nwrite == 2*45000 ) {
|
||||
return nwrite;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user