diff options
| author | Anson Jacob <[email protected]> | 2021-08-23 13:41:13 -0400 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-09-14 15:57:10 -0400 |
| commit | 7b89bf83181363a84f86da787159ddbbef505b8c (patch) | |
| tree | 60033bd32f7d5f5512e18247371b5c4e557ab7b4 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | f22268ce0a3f4065cddfb62ac29845b2c07c1c5a (diff) | |
drm/amd/display: Fix multiple memory leaks reported by coverity
coccinelle patch used:
@@ expression enc1,vpg,afmt; @@
- if (!enc1 || !vpg || !afmt)
+ if (!enc1 || !vpg || !afmt) {
+ kfree(enc1);
+ kfree(vpg);
+ kfree(afmt);
return NULL;
+ }
Addresses-Coverity-ID: 1466017: ("Resource leaks")
Reviewed-by: Aurabindo Jayamohanan Pillai <[email protected]>
Acked-by: Mikita Lipski <[email protected]>
Signed-off-by: Anson Jacob <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions