summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2018-10-01 11:42:37 -0400
committerOlivier Fourdan <ofourdan@redhat.com>2018-10-05 09:14:18 +0200
commita41b6ef2244f1a0003dada0962a9d785e74d7981 (patch)
tree4272d5fd417ebd9adcd338990a7f317d94991dd2
parent9403335910f4e6b862af5c5ef835074be2c52edb (diff)
modesetting: Don't free(dst) in drmmode_prop_info_copy
The destination is always either on the stack or in the middle of some struct. Signed-off-by: Adam Jackson <ajax@redhat.com> (cherry picked from commit 43a0f9a5dbb469f4f403a8530f33be67618933b8)
-rw-r--r--hw/xfree86/drivers/modesetting/drmmode_display.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/xfree86/drivers/modesetting/drmmode_display.c b/hw/xfree86/drivers/modesetting/drmmode_display.c
index f6f2e9fd1..9717d9d39 100644
--- a/hw/xfree86/drivers/modesetting/drmmode_display.c
+++ b/hw/xfree86/drivers/modesetting/drmmode_display.c
@@ -398,7 +398,6 @@ drmmode_prop_info_copy(drmmode_prop_info_ptr dst,
err:
while (i--)
free(dst[i].enum_values);
- free(dst);
return FALSE;
}