X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f13ab1807d381f0bf36027a9042e046dc4735dd5..85c342932c60954a7e1c9430742bfff2b28c31a8:/win32_test_app/src/TStream.c diff --git a/win32_test_app/src/TStream.c b/win32_test_app/src/TStream.c index d2517ff183..da18135d95 100644 --- a/win32_test_app/src/TStream.c +++ b/win32_test_app/src/TStream.c @@ -209,8 +209,7 @@ void Stream_free(Stream_t ptr) if ((NULL != ptr->file) && (stdin != ptr->file)) fclose(ptr->file); - if (NULL != ptr->line) - free(ptr->line); + free(ptr->line); DeleteCriticalSection(&cs); @@ -483,8 +482,7 @@ void Stream_printLine(Stream_t stream, line_type_t line_type) */ } - if (__date) - free(__date); + free(__date); Stream_unlock(stream); }