diff options
author | Dave Airlie <airlied@redhat.com> | 2014-04-23 13:39:42 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-05-02 13:13:20 +1000 |
commit | 06e3c8c53ef4bd159f5864eabf726438d008b49a (patch) | |
tree | 9ad41da8efaa4e813ec38de1e0416f592c205a4f /src | |
parent | dbac18c361f9e514ecb40d0617f9d68b65a542e0 (diff) |
radeon: fix use-after-free in modesetting cleanup
noticed while looking at something else.
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/drmmode_display.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c index 02bdf9e5..bd8e701f 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -958,8 +958,8 @@ drmmode_output_destroy(xf86OutputPtr output) } for (i = 0; i < drmmode_output->mode_output->count_encoders; i++) { drmModeFreeEncoder(drmmode_output->mode_encoders[i]); - free(drmmode_output->mode_encoders); } + free(drmmode_output->mode_encoders); free(drmmode_output->props); drmModeFreeConnector(drmmode_output->mode_output); free(drmmode_output); |