Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | Workaround for a memory leak in --showrc. |
| 2 | |
| 3 | Upstream-Status: Pending |
| 4 | |
| 5 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> |
| 6 | |
| 7 | Index: 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()) { |