Skip to content

Commit e3d4aa0

Browse files
committed
Remove useless call to free.
1 parent 613ab59 commit e3d4aa0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

pygpu/gpuarray.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1428,7 +1428,6 @@ cdef GpuArray pygpu_reshape(GpuArray a, unsigned int nd, const size_t *newdims,
14281428
tot *= newdims[i]
14291429
cdims = <size_t *>calloc(nd, sizeof(size_t))
14301430
if cdims == NULL:
1431-
free(cdims)
14321431
raise MemoryError, "could not allocate cdims"
14331432

14341433
cdef size_t d

0 commit comments

Comments
 (0)