From: Panu Matilainen Date: Mon, 19 Jan 2009 12:21:45 +0000 (+0200) Subject: Fix memleak from i18n strings if retrieved with HEADERGET_ALLOC X-Git-Tag: rpm-4.7.0-beta1~66 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ffcd6a60fc38dfe0d10f22c6023df3e932996310;p=platform%2Fupstream%2Frpm.git Fix memleak from i18n strings if retrieved with HEADERGET_ALLOC --- 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;