(rmut): free utxp

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6745 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-08-05 09:51:45 +00:00
parent 8f2f547d22
commit 0e52d82e0b

View File

@@ -1376,7 +1376,7 @@ static int addarg(struct arg_val *argv, char *val)
static void
rmut(void)
{
struct utmpx *utxp, utmpx, *non_save_utxp;
struct utmpx utmpx, *non_save_utxp;
char *clean_tty = clean_ttyname(line);
/*
@@ -1389,6 +1389,7 @@ rmut(void)
utmpx.ut_type = LOGIN_PROCESS;
non_save_utxp = getutxline(&utmpx);
if (non_save_utxp) {
struct utmpx *utxp;
char user0;
utxp = malloc(sizeof(struct utmpx));
@@ -1429,9 +1430,8 @@ rmut(void)
close(f);
}
}
#else
#endif
free (utxp);
}
endutxent();
} /* end of rmut */