Skip to content

Commit cb13e9d

Browse files
committed
Avoid freeing string that wasn't allocated in the first place
1 parent 393bdff commit cb13e9d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/backends/torch.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ int RAI_ModelRunTorch(RAI_ModelRunCtx* mctx, RAI_Error *error) {
7878
for(size_t i=0 ; i<array_len(mctx->outputs) ; ++i) {
7979
if (outputs[i] == NULL) {
8080
RAI_SetError(error, RAI_EMODELRUN, "Model did not generate the expected number of outputs.");
81-
RedisModule_Free(error_descr);
8281
return 1;
8382
}
8483
RAI_Tensor* output_tensor = RAI_TensorCreateFromDLTensor(outputs[i]);

0 commit comments

Comments
 (0)