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>
This commit is contained in:
parent
361894497c
commit
43a0f9a5db
@ -398,7 +398,6 @@ drmmode_prop_info_copy(drmmode_prop_info_ptr dst,
|
|||||||
err:
|
err:
|
||||||
while (i--)
|
while (i--)
|
||||||
free(dst[i].enum_values);
|
free(dst[i].enum_values);
|
||||||
free(dst);
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user