Free allocated memory when no longer used
authorEzra Peisach <epeisach@mit.edu>
Wed, 18 Oct 2006 02:53:06 +0000 (02:53 +0000)
committerEzra Peisach <epeisach@mit.edu>
Wed, 18 Oct 2006 02:53:06 +0000 (02:53 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18726 dc483132-0cff-0310-8789-dd5450dbe970

src/tests/create/kdb5_mkdums.c

index 38528f0f26e4fc8fe00165b9a24c30544fb5b8e7..f2fb27ad69d41e849acc326743f7bab0bf1d56d6 100644 (file)
@@ -395,6 +395,9 @@ char *dbname;
        com_err(pname, retval, "while initializing database");
        return(1);
     }
+    /* Done with args */
+    free(args[0]);
+
     if ((retval = krb5_db_verify_master_key(test_context, master_princ, 
                                           &master_keyblock))){
        com_err(pname, retval, "while verifying master key");