diff options
author | Alexandra Yates <alexandra.yates@linux.intel.com> | 2014-11-13 19:27:56 -0800 |
---|---|---|
committer | Alexandra Yates <alexandra.yates@linux.intel.com> | 2014-11-13 19:27:56 -0800 |
commit | 5c60631125babe6dd4f0c86a00e4a8b666e259e4 (patch) | |
tree | a2d3781b0f32cbca4506710c743eadb14874432f /traceevent | |
parent | fb6f65a01eca950e2e12a87492268e7d2105aa0b (diff) |
Revert "Deletion of unnecessary checks before specific function calls"
Accidentally committed two patches under the same commit message. Both
patches will be added immediately after.
This reverts commit fb6f65a01eca950e2e12a87492268e7d2105aa0b.
Diffstat (limited to 'traceevent')
-rw-r--r-- | traceevent/event-parse.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/traceevent/event-parse.c b/traceevent/event-parse.c index 5a717a0..6195f6f 100644 --- a/traceevent/event-parse.c +++ b/traceevent/event-parse.c @@ -1023,7 +1023,8 @@ static enum event_type force_token(const char *str, char **tok) static void free_token(char *tok) { - free(tok); + if (tok) + free(tok); } static enum event_type read_token(char **tok) |