diff --git a/src/encmain.c b/src/encmain.c index e9295f85..79cb19ab 100644 --- a/src/encmain.c +++ b/src/encmain.c @@ -361,7 +361,7 @@ int main(int argc, char *argv[]) fclose(input); fclose(output); if(cqmfile != NULL) fclose(cqmfile); - fclose(recout); + if(recout != NULL) fclose(recout); // Deallocating config_destroy(cfg);