diff --git a/src/dsd_frame_sync.c b/src/dsd_frame_sync.c index 315d21a..062bb20 100644 --- a/src/dsd_frame_sync.c +++ b/src/dsd_frame_sync.c @@ -29,11 +29,15 @@ printFrameSync (dsd_opts * opts, dsd_state * state, char *frametype, int offset, fprintf (stderr,"%s ", timestr); fprintf (stderr,"Sync: %s ", frametype); } - if (opts->verbose > 2) + + //oops, that made a nested if-if-if-if statement, + //causing a memory leak + + // if (opts->verbose > 2) //fprintf (stderr,"o: %4i ", offset); - if (opts->verbose > 1) + // if (opts->verbose > 1) //fprintf (stderr,"mod: %s ", modulation); - if (opts->verbose > 2) + // if (opts->verbose > 2) //fprintf (stderr,"g: %f ", state->aout_gain); if (timestr != NULL) diff --git a/src/dsd_symbol.c b/src/dsd_symbol.c index 0a335ce..9cb06db 100644 --- a/src/dsd_symbol.c +++ b/src/dsd_symbol.c @@ -661,6 +661,7 @@ getSymbol (dsd_opts * opts, dsd_state * state, int have_sync) //in debug mode, re-run .bin files over and over (look for memory leaks, etc) if (state->debug_mode == 1) { + opts->symbolfile = NULL; opts->symbolfile = fopen(opts->audio_in_dev, "r"); opts->audio_in_type = 4; //symbol capture bin files }