From: Danilo Almeida Date: Sat, 4 Dec 1999 03:28:35 +0000 (+0000) Subject: * kvno.c (main): Use krb5_free_unparsed_name() isntead of free(). X-Git-Tag: krb5-1.2-beta1~173 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c0d42b77058bb16bf0e7a01cd1e824afadcf3eac;p=krb5.git * kvno.c (main): Use krb5_free_unparsed_name() isntead of free(). Free krb5 context when done. * Makefile.in: Build kvno under Windows. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11943 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/clients/kvno/ChangeLog b/src/clients/kvno/ChangeLog index c4aed766a..2995f7988 100644 --- a/src/clients/kvno/ChangeLog +++ b/src/clients/kvno/ChangeLog @@ -1,3 +1,10 @@ +1999-12-03 Danilo Almeida + + * kvno.c (main): Use krb5_free_unparsed_name() isntead of free(). + Free krb5 context when done. + + * Makefile.in: Build kvno under Windows. + 1999-10-26 Tom Yu * Makefile.in: Clean up usage of CFLAGS, CPPFLAGS, DEFS, DEFINES, diff --git a/src/clients/kvno/Makefile.in b/src/clients/kvno/Makefile.in index fdd4716b5..f5cf443d3 100644 --- a/src/clients/kvno/Makefile.in +++ b/src/clients/kvno/Makefile.in @@ -2,27 +2,19 @@ thisconfigdir=./.. myfulldir=clients/kvno mydir=kvno BUILDTOP=$(REL)$(U)$(S)$(U) -##DOS##BUILDTOP=..\.. PROG_LIBPATH=-L$(TOPLIBD) PROG_RPATH=$(KRB5_LIBDIR) all-unix:: kvno -all-windows:: +all-windows:: $(OUTPRE)kvno.exe all-mac:: kvno: kvno.o $(KRB5_BASE_DEPLIBS) $(CC_LINK) -o $@ kvno.o $(KRB5_BASE_LIBS) - -##WIN32##INCLUDES = /I$(BUILDTOP)\include /I$(BUILDTOP)\include\krb5 -##WIN32##CFLAGS = $(CCOPTS2) -##WIN32##CPPFLAGS = $(INCLUDES) - -##WIN32##all-windows:: kvno.exe -##WIN32##kvno.exe: kvno.obj $(BUILDTOP)\util\windows\getopt.obj $(KLIB) $(CLIB) -##WIN32## link /nologo /out:$@ $** - +$(OUTPRE)kvno.exe: $(OUTPRE)kvno.obj $(BUILDTOP)\util\windows\$(OUTPRE)getopt.obj $(KLIB) $(CLIB) + link $(EXE_LINKOPTS) /out:$@ $** clean-unix:: $(RM) kvno.o kvno diff --git a/src/clients/kvno/kvno.c b/src/clients/kvno/kvno.c index d94fd0bc5..38fa77fb4 100644 --- a/src/clients/kvno/kvno.c +++ b/src/clients/kvno/kvno.c @@ -156,11 +156,12 @@ int main(int argc, char *argv[]) krb5_free_ticket(context, ticket); krb5_free_creds(context, out_creds); - free(princ); + krb5_free_unparsed_name(context, princ); } krb5_free_principal(context, me); krb5_cc_close(context, ccache); + krb5_free_context(context); if (errors) exit(1);