Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Free pt before the function
CommandLine_run
returns.
The function `ProcessTable_new` will return a ProcessTable object. In function `CommandLine_run`, the pointer pt at line 28 is not freed before the function returns. While pt->super is passed to functions at lines 30 and 89, this doesn't transfer ownership of the entire pt structure. There is no explicit free operation for pt in the function, resulting in a memory leak. Thus, we delete the pointer `pt` at the end of the function.
- Loading branch information