aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Wilson2010-08-24 15:29:31 -0500
committerChris Wilson2010-08-24 15:29:31 -0500
commit8a76244a0fd09d0e3298fe68af812d7eaa4dbcb5 (patch)
tree19f7b849ee79dde7fa9ac826bf8851d81a9c3490 /xf86drmMode.c
parentb61e81a191d3a5c269c5f7c40199aebc9ebc034c (diff)
downloadexternal-libdrm-8a76244a0fd09d0e3298fe68af812d7eaa4dbcb5.tar.gz
external-libdrm-8a76244a0fd09d0e3298fe68af812d7eaa4dbcb5.tar.xz
external-libdrm-8a76244a0fd09d0e3298fe68af812d7eaa4dbcb5.zip
Free the property blob along the error path.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'xf86drmMode.c')
-rw-r--r--xf86drmMode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xf86drmMode.c b/xf86drmMode.c
index ecb1fd5e..0d268fce 100644
--- a/xf86drmMode.c
+++ b/xf86drmMode.c
@@ -619,7 +619,7 @@ drmModePropertyBlobPtr drmModeGetPropertyBlob(int fd, uint32_t blob_id)
619 } 619 }
620 620
621 if (!(r = drmMalloc(sizeof(*r)))) 621 if (!(r = drmMalloc(sizeof(*r))))
622 return NULL; 622 goto err_allocs;
623 623
624 r->id = blob.blob_id; 624 r->id = blob.blob_id;
625 r->length = blob.length; 625 r->length = blob.length;