summaryrefslogtreecommitdiff
path: root/src/fr-command-tar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fr-command-tar.c')
-rw-r--r--src/fr-command-tar.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/fr-command-tar.c b/src/fr-command-tar.c
index 50aae1a..6f7943f 100644
--- a/src/fr-command-tar.c
+++ b/src/fr-command-tar.c
@@ -140,8 +140,11 @@ 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) {
+ fdata->original_path = g_strdup (name);
+ fdata->free_original_path = TRUE;
+ }
+ g_free (name);
if (fields[1] != NULL)
fdata->link = g_strdup (fields[1]);