Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

attach: free result before potentially strduping a second time.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
  • Loading branch information...
commit 53a54099bc66a8a72935220921be73b933dad064 1 parent cb3e61f
@hallyn hallyn authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  src/lxc/attach.c
View
2  src/lxc/attach.c
@@ -355,6 +355,8 @@ char *lxc_attach_getpwshell(uid_t uid)
}
if (!token)
continue;
+ if (result)
+ free(result);
result = strdup(token);
/* sanity check that there are no fields after that */
Please sign in to comment.
Something went wrong with that request. Please try again.