Skip to content

Commit c1d5c95

Browse files
committed
Fix allocation size of handle.
1 parent 36d65e3 commit c1d5c95

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gpuarray_blas_cuda_cublas.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ static int setup(void *c) {
171171
if (ctx->blas_handle != NULL)
172172
return GA_NO_ERROR;
173173

174-
handle = calloc(1, sizeof(handle));
174+
handle = calloc(1, sizeof(*handle));
175175
if (handle == NULL)
176176
return GA_MEMORY_ERROR;
177177

0 commit comments

Comments
 (0)