cgmanager: free line at end of check_supports_multiple_controllers

This is only called at startup so it wasn't a big leak, but it is a leak.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
Serge Hallyn 2015-03-17 19:02:19 -05:00 committed by Stéphane Graber
parent 89a4ec737e
commit 7b7d76e00b

View File

@ -246,11 +246,12 @@ static void check_supports_multiple_controllers(pid_t pid)
} }
if (strcmp(prevpath, colon) != 0) { if (strcmp(prevpath, colon) != 0) {
cgm_all_controllers_same = false; cgm_all_controllers_same = false;
fclose(f); break;
return;
} }
} }
fclose(f); fclose(f);
free(line);
} }
static int send_creds(int sock, int rpid, int ruid, int rgid) static int send_creds(int sock, int rpid, int ruid, int rgid)