diff options
| -rw-r--r-- | tools/perf/util/module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/module.c b/tools/perf/util/module.c index 8f81622073e1..0d8c85defcd2 100644 --- a/tools/perf/util/module.c +++ b/tools/perf/util/module.c | |||
| @@ -423,7 +423,7 @@ static int mod_dso__load_module_paths(struct mod_dso *self) | |||
| 423 | len += strlen(uts.release); | 423 | len += strlen(uts.release); |
| 424 | len += strlen("/modules.dep"); | 424 | len += strlen("/modules.dep"); |
| 425 | 425 | ||
| 426 | dpath = calloc(1, len); | 426 | dpath = calloc(1, len + 1); |
| 427 | if (dpath == NULL) | 427 | if (dpath == NULL) |
| 428 | return err; | 428 | return err; |
| 429 | 429 | ||
