Free the property blob along the error path.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>main
parent
b61e81a191
commit
8a76244a0f
|
@ -619,7 +619,7 @@ drmModePropertyBlobPtr drmModeGetPropertyBlob(int fd, uint32_t blob_id)
|
|||
}
|
||||
|
||||
if (!(r = drmMalloc(sizeof(*r))))
|
||||
return NULL;
|
||||
goto err_allocs;
|
||||
|
||||
r->id = blob.blob_id;
|
||||
r->length = blob.length;
|
||||
|
|
Loading…
Reference in New Issue