Date: Mon, 5 Jul 2010 23:37:10 GMT From: Ivan Voras <ivoras@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 180512 for review Message-ID: <201007052337.o65NbAXK090432@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@180512?ac=10 Change 180512 by ivoras@betelgeuse on 2010/07/05 23:37:06 Free the package list Affected files ... .. //depot/projects/soc2010/pkg_patch/src/patch/Makefile#20 edit .. //depot/projects/soc2010/pkg_patch/src/patch/applypatch.c#10 edit .. //depot/projects/soc2010/pkg_patch/src/patch/applypatch.h#10 edit .. //depot/projects/soc2010/pkg_patch/src/patch/hashjob.c#19 edit .. //depot/projects/soc2010/pkg_patch/src/patch/hashjob.h#19 edit .. //depot/projects/soc2010/pkg_patch/src/patch/main.c#20 edit .. //depot/projects/soc2010/pkg_patch/src/patch/mkpatch.c#18 edit .. //depot/projects/soc2010/pkg_patch/src/patch/mkpatch.h#18 edit .. //depot/projects/soc2010/pkg_patch/src/patch/mkpatchdir.c#2 edit .. //depot/projects/soc2010/pkg_patch/src/patch/mkpatchdir.h#2 edit .. //depot/projects/soc2010/pkg_patch/src/patch/pkg_patch.h#18 edit .. //depot/projects/soc2010/pkg_patch/src/patch/support.c#17 edit Differences ... ==== //depot/projects/soc2010/pkg_patch/src/patch/Makefile#20 (text+ko) ==== ==== //depot/projects/soc2010/pkg_patch/src/patch/applypatch.c#10 (text+ko) ==== ==== //depot/projects/soc2010/pkg_patch/src/patch/applypatch.h#10 (text+ko) ==== ==== //depot/projects/soc2010/pkg_patch/src/patch/hashjob.c#19 (text+ko) ==== ==== //depot/projects/soc2010/pkg_patch/src/patch/hashjob.h#19 (text+ko) ==== ==== //depot/projects/soc2010/pkg_patch/src/patch/main.c#20 (text+ko) ==== ==== //depot/projects/soc2010/pkg_patch/src/patch/mkpatch.c#18 (text+ko) ==== ==== //depot/projects/soc2010/pkg_patch/src/patch/mkpatch.h#18 (text+ko) ==== ==== //depot/projects/soc2010/pkg_patch/src/patch/mkpatchdir.c#2 (text+ko) ==== ==== //depot/projects/soc2010/pkg_patch/src/patch/mkpatchdir.h#2 (text+ko) ==== ==== //depot/projects/soc2010/pkg_patch/src/patch/pkg_patch.h#18 (text+ko) ==== @@ -128,6 +128,7 @@ struct pkgjoinlist_head *jlist); unsigned int filelist_count(struct filelist_head *flist); void filelist_free(struct filelist_head *flist); +void pkgjoinlist_free(struct pkgjoinlist_head *plist); void parse_package_name(char *pkgfile, char *basename, char *version, char *suffix); int copy_file_absolute(char *from, char *to); ==== //depot/projects/soc2010/pkg_patch/src/patch/support.c#17 (text+ko) ==== @@ -239,6 +239,21 @@ /* + * Free the pkgjoinlist's entries. + */ +void +pkgjoinlist_free(struct pkgjoinlist_head *plist) +{ + struct pkgjoinlist *pl1, *pl2; + + SLIST_FOREACH_SAFE(pl1, plist, linkage, pl2) { + SLIST_REMOVE(plist, pl1, pkgjoinlist, linkage); + free(pl1); + } +} + + +/* * Returns a file list consisting of the intersection of packages from the first * list */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007052337.o65NbAXK090432>