Commit ec49a62b authored by spiiroin's avatar spiiroin

[modesetting] Fix memory leak in modesetting_report_mass_storage_blocker()

Line buffer allocated/managed by getline() is not released.
Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
parent 8e469091
......@@ -491,6 +491,7 @@ static void modesetting_report_mass_storage_blocker(const char *mountpoint, int
count++;
}
pclose(stream);
free(text);
}
g_free(lsof_command);
if(try == 2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment