diff options
| author | Josh Triplett <josh@joshtriplett.org> | 2009-08-05 19:17:12 -0400 |
|---|---|---|
| committer | Josh Triplett <josh@joshtriplett.org> | 2009-08-05 19:17:12 -0400 |
| commit | 9ae6b301bb3e9b58048dcaed8fa45797673206b9 (patch) | |
| tree | 11183540f691bdec4c876d6a623d696e2124af6f | |
| parent | 3199da078d389981dd8e00d305ff2b168ca053ad (diff) | |
free(NULL) works just fine.
Signed-off-by: Josh Triplett <josh@joshtriplett.org>
| -rw-r--r-- | trace-cmd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/trace-cmd.c b/trace-cmd.c index e3589bc..c452c8f 100644 --- a/trace-cmd.c +++ b/trace-cmd.c | |||
| @@ -227,8 +227,7 @@ static char *get_tracing_file(const char *name) | |||
| 227 | 227 | ||
| 228 | static void put_tracing_file(char *file) | 228 | static void put_tracing_file(char *file) |
| 229 | { | 229 | { |
| 230 | if (file) | 230 | free(file); |
| 231 | free(file); | ||
| 232 | } | 231 | } |
| 233 | 232 | ||
| 234 | static void write_trace(const char *file, const char *val) | 233 | static void write_trace(const char *file, const char *val) |
