Skip to content

Commit

Permalink
Fix double-free in r2pm when no python bin in path ##crash
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed May 5, 2023
1 parent 3648208 commit 3c9ad15
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libr/main/r2pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ static void r2pm_setenv(void) {
NULL
};
const char *bin = python_bins[0];
char *bin_path;
char *bin_path = NULL;
int i;
char *env_python = r_sys_getenv ("PYTHON");
#if !R2_590
Expand All @@ -445,7 +445,6 @@ static void r2pm_setenv(void) {
#endif
break;
}
free (bin_path);
}

#if R2_590
Expand Down

0 comments on commit 3c9ad15

Please sign in to comment.