From ffcd6a60fc38dfe0d10f22c6023df3e932996310 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mon, 19 Jan 2009 14:21:45 +0200 Subject: [PATCH] Fix memleak from i18n strings if retrieved with HEADERGET_ALLOC --- lib/header.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/header.c b/lib/header.c index 0d914de..0b6ed3e 100644 --- a/lib/header.c +++ b/lib/header.c @@ -1358,6 +1358,7 @@ static int copyI18NEntry(Header h, indexEntry entry, rpmtd td, exit: if (flags & HEADERGET_ALLOC) { td->data = xstrdup(td->data); + td->flags |= RPMTD_ALLOCED; } return 1; -- 2.7.4