Skip to content

Commit

Permalink
fix fdb memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
xianjimli committed Dec 27, 2024
1 parent 1b11abc commit 00c2878
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/changes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# 最新动态

2024/12/27
* 修复fdb资源泄露的问题(感谢智明提供补丁)

2024/12/26
* 增加fdb回车使用上一个命令(感谢智明提供补丁)

Expand Down
4 changes: 3 additions & 1 deletion tools/fdb/fdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,9 @@ ret_t fdb_shell_run(void) {
break;
}
}

if (last_line != NULL) {
TKMEM_FREE(last_line);
}
app.debugger = NULL;
TK_OBJECT_UNREF(obj);

Expand Down

0 comments on commit 00c2878

Please sign in to comment.