Skip to content
This repository was archived by the owner on Dec 26, 2022. It is now read-only.

Commit 25e8626

Browse files
committed
fix(api): Fix memory leak and lost tx error
Use original TRYTES_81_3 as arugemnet of get_trytes() would return null trytes response (all 9 response) which may result from this transaction is lost in BD (snapshot or some reason else). Using other exist transaction hash can solve this issue
1 parent 1f333bf commit 25e8626

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

accelerator/apis.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ status_t api_find_transactions_by_tag(
116116
ret = ta_find_transactions_res_serialize(json_result, res);
117117

118118
done:
119+
free(req_tag);
119120
ta_find_transactions_res_free(&res);
120121
return ret;
121122
}

0 commit comments

Comments
 (0)