diff options
| -rw-r--r-- | tools/perf/util/annotate.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index 61bf9128e1f2..9d9db3b296dd 100644 --- a/tools/perf/util/annotate.c +++ b/tools/perf/util/annotate.c | |||
| @@ -30,6 +30,8 @@ static int disasm_line__parse(char *line, char **namep, char **rawp); | |||
| 30 | 30 | ||
| 31 | static void ins__delete(struct ins_operands *ops) | 31 | static void ins__delete(struct ins_operands *ops) |
| 32 | { | 32 | { |
| 33 | if (ops == NULL) | ||
| 34 | return; | ||
| 33 | zfree(&ops->source.raw); | 35 | zfree(&ops->source.raw); |
| 34 | zfree(&ops->source.name); | 36 | zfree(&ops->source.name); |
| 35 | zfree(&ops->target.raw); | 37 | zfree(&ops->target.raw); |
