From: Chris Wilson Date: Tue, 24 Aug 2010 20:29:31 +0000 (+0100) Subject: Free the property blob along the error path. X-Git-Tag: submit/1.0/20121108.012404~209 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8a76244a0fd09d0e3298fe68af812d7eaa4dbcb5;p=profile%2Fivi%2Flibdrm.git Free the property blob along the error path. Signed-off-by: Chris Wilson --- diff --git a/xf86drmMode.c b/xf86drmMode.c index ecb1fd5..0d268fc 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;