summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fr-command-tar.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/fr-command-tar.c b/src/fr-command-tar.c
index 4bfc32d..0452bb8 100644
--- a/src/fr-command-tar.c
+++ b/src/fr-command-tar.c
@@ -137,8 +137,13 @@ process_line (char *line,
}
g_free (name);
name = g_filename_from_utf8 (fdata->original_path, -1, NULL, NULL, NULL);
- if (name)
- fdata->original_path = name;
+ if (name) {
+ if (fdata->free_original_path)
+ g_free (fdata->original_path);
+ fdata->original_path = g_strdup (name);
+ fdata->free_original_path = TRUE;
+ }
+ g_free (name);
if (fields[1] != NULL)
fdata->link = g_strdup (fields[1]);