1 /* Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved.
3 * Permission to use, copy, modify, and distribute this software
4 * is freely granted, provided that this notice is preserved.
25 wordfree(wordexp_t *pwordexp)
32 if (pwordexp->we_wordv == NULL)
35 for(i = 0; i < pwordexp->we_wordc; i++)
36 free(pwordexp->we_wordv[i]);
38 free(pwordexp->we_wordv);
39 pwordexp->we_wordv = NULL;
42 #endif /* !_NO_WORDEXP */