aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rpm/rpm/rpm-showrc.patch
blob: ec38b95f2eb975c2fc0e68ea8e71fd430b6734cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Workaround for a memory leak in --showrc.

Upstream-Status: Pending

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>

Index: rpm-5.4.14/lib/rpmrc.c
===================================================================
--- rpm-5.4.14.orig/lib/rpmrc.c
+++ rpm-5.4.14/lib/rpmrc.c
@@ -1228,11 +1228,15 @@ int rpmShowRC(FILE * fp)
 		if (DNEVR != NULL)
 		    fprintf(fp, "    %s\n", DNEVR+2);
 	    }
+#if 0
 	    (void)rpmdsFree(ds);
 	    ds = NULL;
+#endif
 	    fprintf(fp, "\n");
 	}
+#if 0
 	PRCO = rpmdsFreePRCO(PRCO);
+#endif
     }
 
     if (rpmIsVerbose()) {