Skip to content

Commit

Permalink
Fix use-after-free
Browse files Browse the repository at this point in the history
  • Loading branch information
mads256h committed Feb 29, 2024
1 parent 0be3f0f commit 80270d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CONFIG/src/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ int GetIntProbe(int verb, char *targarg, char *prb, char *id, int N)
if (res)
{
iret = GetLastInt(res);
free(res);
}
if (N)
{
Expand All @@ -66,6 +65,7 @@ int GetIntProbe(int verb, char *targarg, char *prb, char *id, int N)
iret = 0;
}
}
free(res);
return(iret);
}

Expand Down

0 comments on commit 80270d7

Please sign in to comment.