Skip to content

Commit 71ce212

Browse files
committed
Free backPtr_a
1 parent d27a416 commit 71ce212

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libtorchaudio/forced_align/cpu/compute.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ void forced_align_impl(
129129
paths_a[batchIndex][t] = lbl_idx;
130130
ltrIdx -= backPtr_a[t * S + ltrIdx]; // backPtr_a[t][ltrIdx]
131131
}
132+
delete[] backPtr_a;
132133
}
133134

134135
std::tuple<torch::Tensor, torch::Tensor> compute(

0 commit comments

Comments
 (0)