Skip to content

Commit 0af6e96

Browse files
author
seetaface
authored
Merge pull request seetaface#7 from bryongloden/patch-1
[FaceIdentification] fix deallocation mismatch
2 parents 589b6f3 + 53e5b4e commit 0af6e96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FaceIdentification/src/blob.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ void Blob::Permute(int dim1, int dim2, int dim3, int dim4) {
126126
for (int i = 0; i < 4; ++ i)
127127
shape_[i] = tmp_shape[i];
128128
memcpy(dat, tmp, sizeof(float) * count_);
129-
delete tmp;
129+
delete[] tmp;
130130
}
131131

132132
void Blob::Release() {

0 commit comments

Comments
 (0)