You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
, strdup(env) will allocate memory and assign the memory adderss to env, however there is no free() action on env. So memory leak will occur at the end of function argv_from_env().
@ideal if I didn't miss something, I also think it deserve a fix. I don't know if jonas was intentionally designed to do this, or just ignored the memory release action.
This is 360 CodeSafe Team, we found a suspicious memory leak occured in
tig/src/argv.c
. Seetig/src/argv.c
Line 182 in f49fc7c
strdup(env)
will allocate memory and assign the memory adderss toenv
, however there is nofree()
action onenv
. So memory leak will occur at the end of functionargv_from_env()
.Since I'm unfamiliar with
tig
, please forgive me if there is anythingwrong with my description.
Qihoo360 CodeSafe Team
The text was updated successfully, but these errors were encountered: