blob: ec38b95f2eb975c2fc0e68ea8e71fd430b6734cd [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001Workaround for a memory leak in --showrc.
2
3Upstream-Status: Pending
4
5Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
6
7Index: rpm-5.4.14/lib/rpmrc.c
8===================================================================
9--- rpm-5.4.14.orig/lib/rpmrc.c
10+++ rpm-5.4.14/lib/rpmrc.c
11@@ -1228,11 +1228,15 @@ int rpmShowRC(FILE * fp)
12 if (DNEVR != NULL)
13 fprintf(fp, " %s\n", DNEVR+2);
14 }
15+#if 0
16 (void)rpmdsFree(ds);
17 ds = NULL;
18+#endif
19 fprintf(fp, "\n");
20 }
21+#if 0
22 PRCO = rpmdsFreePRCO(PRCO);
23+#endif
24 }
25
26 if (rpmIsVerbose()) {