diff options
author | Vinson Lee <[email protected]> | 2010-09-17 14:17:26 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-09-17 14:17:26 -0700 |
commit | 2da46949551ddf8489d823a7f25505b1805f7aee (patch) | |
tree | f0c640bbfdc75ee70d00fcfad984c0cb336e040b | |
parent | d56e46577e674f8068f44a2c77a5a0a42d733068 (diff) |
r600g: Fix memory leak on error path.
-rw-r--r-- | src/gallium/winsys/r600/drm/r600_state2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/winsys/r600/drm/r600_state2.c b/src/gallium/winsys/r600/drm/r600_state2.c index e33b63d405b..b3d618748d1 100644 --- a/src/gallium/winsys/r600/drm/r600_state2.c +++ b/src/gallium/winsys/r600/drm/r600_state2.c @@ -984,7 +984,7 @@ void r600_context_dump_bof(struct r600_context *ctx, const char *file) goto out_err; device_id = bof_int32(ctx->radeon->device); if (device_id == NULL) - return; + goto out_err; if (bof_object_set(root, "device_id", device_id)) goto out_err; bof_decref(device_id); |