diff options
author | Luca Deri <deri@ntop.org> | 2021-04-02 12:55:15 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2021-04-02 12:55:15 +0200 |
commit | a1dba74346ce8563cf49172d88cfd21ee0938e93 (patch) | |
tree | e1dda9edec6b74e06652c305f69d7fad05baed88 /example | |
parent | 4f8ca9485a7fc242f75ce3eb37428276810be219 (diff) |
Trace fix
Diffstat (limited to 'example')
-rw-r--r-- | example/ndpiReader.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 88b3a2716..827fa31f9 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -1036,10 +1036,6 @@ static void parseOptions(int argc, char **argv) { } #endif #endif - -#ifdef DEBUG_TRACE - if(trace) fclose(trace); -#endif } /* ********************************** */ @@ -4324,6 +4320,10 @@ int original_main(int argc, char **argv) { if(ndpi_info_mod) ndpi_exit_detection_module(ndpi_info_mod); if(csv_fp) fclose(csv_fp); ndpi_free(_debug_protocols); + +#ifdef DEBUG_TRACE + if(trace) fclose(trace); +#endif return 0; } |