diff --git a/lib/wsprd/wsprd.c b/lib/wsprd/wsprd.c index eea667ebb..8d8622761 100644 --- a/lib/wsprd/wsprd.c +++ b/lib/wsprd/wsprd.c @@ -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 {