Skip to content

Commit

Permalink
cgmanager: free line at end of check_supports_multiple_controllers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
hallyn authored and stgraber committed Apr 6, 2015
1 parent 89a4ec7 commit 7b7d76e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lxc/cgmanager.c
Expand Up @@ -246,11 +246,12 @@ static void check_supports_multiple_controllers(pid_t pid)
}
if (strcmp(prevpath, colon) != 0) {
cgm_all_controllers_same = false;
fclose(f);
return;
break;
}
}

fclose(f);
free(line);
}

static int send_creds(int sock, int rpid, int ruid, int rgid)
Expand Down

0 comments on commit 7b7d76e

Please sign in to comment.