Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-projects commit in portage-utils: qcache.c
Date: Sun, 29 Sep 2013 18:36:15
Message-Id: 20130929183611.BE9D72004C@flycatcher.gentoo.org
1 vapier 13/09/29 18:36:11
2
3 Modified: qcache.c
4 Log:
5 qcache: fix crash with stats generation -- we allocate keywords once in this func, so freeing it in the middle is wrong #486488 by Markos Chandras
6
7 Revision Changes Path
8 1.45 portage-utils/qcache.c
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/qcache.c?rev=1.45&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/qcache.c?rev=1.45&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/qcache.c?r1=1.44&r2=1.45
13
14 Index: qcache.c
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-projects/portage-utils/qcache.c,v
17 retrieving revision 1.44
18 retrieving revision 1.45
19 diff -u -r1.44 -r1.45
20 --- qcache.c 29 Sep 2013 18:33:22 -0000 1.44
21 +++ qcache.c 29 Sep 2013 18:36:11 -0000 1.45
22 @@ -1,7 +1,7 @@
23 /*
24 * Copyright 2005-2010 Gentoo Foundation
25 * Distributed under the terms of the GNU General Public License v2
26 - * $Header: /var/cvsroot/gentoo-projects/portage-utils/qcache.c,v 1.44 2013/09/29 18:33:22 vapier Exp $
27 + * $Header: /var/cvsroot/gentoo-projects/portage-utils/qcache.c,v 1.45 2013/09/29 18:36:11 vapier Exp $
28 *
29 * Copyright 2006 Thomas A. Cort - <tcort@g.o>
30 */
31 @@ -47,7 +47,7 @@
32 COMMON_OPTS_HELP
33 };
34
35 -static const char qcache_rcsid[] = "$Id: qcache.c,v 1.44 2013/09/29 18:33:22 vapier Exp $";
36 +static const char qcache_rcsid[] = "$Id: qcache.c,v 1.45 2013/09/29 18:36:11 vapier Exp $";
37 #define qcache_usage(ret) usage(ret, QCACHE_FLAGS, qcache_long_opts, qcache_opts_help, lookup_applet_idx("qcache"))
38
39 /********************************************************************/
40 @@ -789,7 +789,6 @@
41 memset(keywords, 0, archlist_count * sizeof(*keywords));
42 if (read_keywords(data->cache_data->KEYWORDS, keywords) < 0) {
43 warn("Failed to read keywords for %s%s/%s%s%s", BOLD, data->category, BLUE, data->ebuild, NORM);
44 - free(keywords);
45 return;
46 }