OSDN Git Service

Free the property blob along the error path.
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 24 Aug 2010 20:29:31 +0000 (21:29 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 24 Aug 2010 20:29:31 +0000 (21:29 +0100)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
xf86drmMode.c

index ecb1fd5..0d268fc 100644 (file)
@@ -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;