summaryrefslogtreecommitdiff
path: root/xf86drmMode.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-08-24 21:29:31 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-08-24 21:29:31 +0100
commit8a76244a0fd09d0e3298fe68af812d7eaa4dbcb5 (patch)
tree19f7b849ee79dde7fa9ac826bf8851d81a9c3490 /xf86drmMode.c
parentb61e81a191d3a5c269c5f7c40199aebc9ebc034c (diff)
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)
}
if (!(r = drmMalloc(sizeof(*r))))
- return NULL;
+ goto err_allocs;
r->id = blob.blob_id;
r->length = blob.length;