Skip to content

Commit

Permalink
[modesetting] Fix memory leak in modesetting_report_mass_storage_bloc…
Browse files Browse the repository at this point in the history
…ker()

Line buffer allocated/managed by getline() is not released.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed Aug 24, 2018
1 parent 8e46909 commit ec49a62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/usb_moded-modesetting.c
Expand Up @@ -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)
Expand Down

0 comments on commit ec49a62

Please sign in to comment.