* kvno.c (main): Use krb5_free_unparsed_name() isntead of free().
authorDanilo Almeida <dalmeida@mit.edu>
Sat, 4 Dec 1999 03:28:35 +0000 (03:28 +0000)
committerDanilo Almeida <dalmeida@mit.edu>
Sat, 4 Dec 1999 03:28:35 +0000 (03:28 +0000)
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

src/clients/kvno/ChangeLog
src/clients/kvno/Makefile.in
src/clients/kvno/kvno.c

index c4aed766af7636f45fd81c1c278c605add2c3b4e..2995f79889615beb58c05144113d556ed22c6beb 100644 (file)
@@ -1,3 +1,10 @@
+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,
index fdd4716b5c21a56f62c8c43b69aa18749d28b520..f5cf443d3ad9f85a55e7be89dcd163ea33eac3c8 100644 (file)
@@ -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
index d94fd0bc51cfec09f42430ac34aa3245b2fdb851..38fa77fb468500fb7cf301aed78c1c7fdb39bffd 100644 (file)
@@ -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);