From: Junyan He <[email protected]>
Signed-off-by: Junyan He <[email protected]>
---
src/cl_enqueue.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cl_enqueue.c b/src/cl_enqueue.c
index f4ae07f..13aecd3 100644
--- a/src/cl_enqueue.c
+++ b/src/cl_enqueue.c
@@ -483,7 +483,6 @@ cl_enqueue_native_kernel(enqueue_data *data, cl_int status)
cl_mem_unmap_auto(mem_list[i]);
}
- free(data->ptr);
error:
return err;
}
@@ -547,6 +546,7 @@ cl_enqueue_delete(enqueue_data *data)
cl_free((void*)data->const_ptr);
data->const_ptr = NULL;
}
+ return;
}
}
--
2.7.4
____________________________________________________________
Can't remember your password? Do you need a strong and secure password?
Use Password manager! It stores your passwords & protects your account.
Check it out at http://mysecurelogon.com/password-manager
_______________________________________________
Beignet mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/beignet