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
+1999-12-03 Danilo Almeida <dalmeida@mit.edu>
+
+ * 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 <tlyu@mit.edu>
* Makefile.in: Clean up usage of CFLAGS, CPPFLAGS, DEFS, DEFINES,
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
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);