[iksemel] Fix potential memory leak in iksroster

This commit is contained in:
Andrey Volk 2022-01-05 19:14:27 +03:00
parent d8c3595076
commit fa6d0c4157
1 changed files with 1 additions and 0 deletions

View File

@ -299,6 +299,7 @@ main (int argc, char *argv[])
strtok (to_pw, "\r\n");
break;
case 'f':
if (file) free(file);
file = strdup (optarg);
break;
case 't':