diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/canonicalize.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/canonicalize.c b/lib/canonicalize.c index e82ae75ad..4263c9de4 100644 --- a/lib/canonicalize.c +++ b/lib/canonicalize.c @@ -150,6 +150,7 @@ canonicalize_file_name (const char *name) if (resolved_len < 0) { free (resolved); + free (extra_buf); return NULL; } if (resolved_len < resolved_size) @@ -157,12 +158,6 @@ canonicalize_file_name (const char *name) free (resolved); } - if (resolved_len < 0) - { - free (resolved); - resolved = NULL; - } - free (extra_buf); return resolved; |