diff options
Diffstat (limited to 'fc-cat')
-rw-r--r-- | fc-cat/fc-cat.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/fc-cat/fc-cat.c b/fc-cat/fc-cat.c index 3a303c2d..f0131b6d 100644 --- a/fc-cat/fc-cat.c +++ b/fc-cat/fc-cat.c @@ -316,12 +316,6 @@ main (int argc, char **argv) return 1; } } - arglist = FcStrListCreate (args); - if (!arglist) - { - fprintf (stderr, "%s: malloc failure\n", argv[0]); - return 1; - } } else { @@ -341,6 +335,7 @@ main (int argc, char **argv) fprintf (stderr, "%s: malloc failure\n", argv[0]); return 1; } + FcStrSetDestroy (args); while ((arg = FcStrListNext (arglist))) { @@ -385,6 +380,7 @@ main (int argc, char **argv) if (cache_file) FcStrFree (cache_file); } + FcStrListDone (arglist); FcFini (); return 0; |