Skip to content

Commit

Permalink
patch: delete_patch(): Clean ulp-xxxx file
Browse files Browse the repository at this point in the history
Signed-off-by: Rong Tao <rongtao@cestc.cn>
  • Loading branch information
Rtoax committed May 13, 2024
1 parent d4e1b23 commit fedbc1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/patch/patch.c
Original file line number Diff line number Diff line change
Expand Up @@ -1030,6 +1030,8 @@ int delete_patch(struct task_struct *task)
goto exit;
}

fremove(vma->name_);

exit:
task_detach(task->pid);
return err;
Expand Down
2 changes: 1 addition & 1 deletion src/utils/task.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ struct vm_area_struct {
unsigned int major, minor;
unsigned long inode;
char perms[5];
char name_[256];
char name_[PATH_MAX];
#define PROT_FMT "%c%c%c"
#define PROT_ARGS(p) \
(p & PROT_READ) ? 'r' : '-', \
Expand Down

0 comments on commit fedbc1e

Please sign in to comment.