A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Kill "if" before free, and useless cast of free argument.
[simgrid.git]
/
win32_test_app
/
src
/
TStream.c
diff --git
a/win32_test_app/src/TStream.c
b/win32_test_app/src/TStream.c
index d2517ff18307bd0fe2912252fad480d94ea3ecf8..da18135d95533c0723d12eb1df911ba011ffdc1a 100644
(file)
--- 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);
}