diff -Naurp --exclude CVS --exclude ChangeLog --exclude VERSION --exclude Makefile old/policycoreutils/setsebool/setsebool.c new/policycoreutils/setsebool/setsebool.c --- old/policycoreutils/setsebool/setsebool.c 2005-11-05 00:15:55.000000000 -0500 +++ new/policycoreutils/setsebool/setsebool.c 2005-11-05 00:23:34.000000000 -0500 @@ -220,13 +220,15 @@ int setbool(char **list, size_t start, s i++; } + for (i=0; i < boolcnt; i++) + free(vallist[i].name); + free(vallist); return 0; err: for (i=0; i < boolcnt; i++) - if (vallist[i].name) free(vallist[i].name); + free(vallist[i].name); free(vallist); - return -1; }