Repair a file handle leak in wsprd

This commit is contained in:
Bill Somerville 2021-08-11 11:19:28 +01:00
parent d13a5d04e8
commit 82e3949b8b
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F

View File

@ -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 {