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:
parent
9403335910
commit
a41b6ef224
|
@ -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