From fa6d0c4157004d3d356e59c04a14fd4e0e8ed400 Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Wed, 5 Jan 2022 19:14:27 +0300 Subject: [PATCH] [iksemel] Fix potential memory leak in iksroster --- libs/iksemel/tools/iksroster.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/iksemel/tools/iksroster.c b/libs/iksemel/tools/iksroster.c index e97f81cd15..71237972b3 100644 --- a/libs/iksemel/tools/iksroster.c +++ b/libs/iksemel/tools/iksroster.c @@ -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':