Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions procutil/procfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,12 @@ pid_t procfs_get_tracerpid(pid_t pid) {
* failure return '?'. */
char procfs_pid_state(pid_t pid, pid_t tid) {
char * val = get_status_field(pid, tid, "State");

if (val) {
return val[0];
free(val);
} else
return '?';
}

return '?';
}

/**********************************************************************************************************************/
Expand Down