diff --git a/plugins/ini.c b/plugins/ini.c index 2071e3b..f05368d 100644 --- a/plugins/ini.c +++ b/plugins/ini.c @@ -1228,12 +1228,11 @@ iniFreeFileData (CompDisplay *d) INI_DISPLAY (d); fd = id->fileData; - tmp = fd; - - while (tmp && fd) + while (fd) { - free (tmp); - tmp = fd->next; + tmp = fd; + fd = fd->next; + free (tmp); } }