Free memory leak in do_test() from asprintf integration
authorEzra Peisach <epeisach@mit.edu>
Tue, 14 Aug 2007 18:11:36 +0000 (18:11 +0000)
committerEzra Peisach <epeisach@mit.edu>
Tue, 14 Aug 2007 18:11:36 +0000 (18:11 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19821 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/keytab/t_keytab.c

index 08610abac5b96d77a8f2ca08013a731daca8ff9c..4212b2e42bb16168728dac5205efe40fbdf0cf0e 100644 (file)
@@ -385,6 +385,8 @@ static void do_test(krb5_context context, const char *prefix,
   printf("Test on %s passed\n", name);
   if(delete)
          unlink(filename);
+  free(filename);
+  free(name);
 
 }