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 43a0f9a5db)
This commit is contained in:
Adam Jackson 2018-10-01 11:42:37 -04:00 committed by Olivier Fourdan
parent 9403335910
commit a41b6ef224
1 changed files with 0 additions and 1 deletions

View File

@ -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;
}