freeing storage. Patch from Nalin Dahyabhai <nalin@redhat.com>.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12869
dc483132-0cff-0310-8789-
dd5450dbe970
+2000-11-21 Ken Raeburn <raeburn@mit.edu>
+
+ * cmds.c (globulize): Use correct address of globbed results when
+ freeing storage. Patch from Nalin Dahyabhai <nalin@redhat.com>.
+
2000-10-23 Tom Yu <tlyu@mit.edu>
* secure.h: Change SESSION to refer to &cred.session instead, so
char **cpp;
{
char **globbed;
+ char **globbed1;
if (!doglob)
return (1);
return (0);
}
if (globbed) {
- *cpp = *globbed++;
+ globbed1 = globbed;
+ *cpp = *globbed1++;
/* don't waste too much memory */
if (*globbed) {
- blkfree(globbed);
+ blkfree(globbed1);
free((char *)globbed);
}
}