summaryrefslogtreecommitdiff
path: root/cups/ppd.c
diff options
context:
space:
mode:
Diffstat (limited to 'cups/ppd.c')
-rw-r--r--cups/ppd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cups/ppd.c b/cups/ppd.c
index 435b992f4..b823d17b4 100644
--- a/cups/ppd.c
+++ b/cups/ppd.c
@@ -716,6 +716,8 @@ _ppdOpen(
strncmp(ll, keyword, ll_len)))
{
DEBUG_printf(("2_ppdOpen: Ignoring localization: \"%s\"\n", keyword));
+ free(string);
+ string = NULL;
continue;
}
else if (localization == _PPD_LOCALIZATION_ICC_PROFILES)
@@ -735,6 +737,8 @@ _ppdOpen(
if (i >= (int)(sizeof(color_keywords) / sizeof(color_keywords[0])))
{
DEBUG_printf(("2_ppdOpen: Ignoring localization: \"%s\"\n", keyword));
+ free(string);
+ string = NULL;
continue;
}
}