bundle: use prefix_filename with bundle path
[gitweb.git] / builtin / config.c
index 74f6c34d11ec720b7faf8212b9b61ec0648cf4aa..4f49a0edb9071f4f63e97dfae902ff7a0aa51ee9 100644 (file)
@@ -527,8 +527,7 @@ int cmd_config(int argc, const char **argv, const char *prefix)
        else if (given_config_source.file) {
                if (!is_absolute_path(given_config_source.file) && prefix)
                        given_config_source.file =
-                               xstrdup(prefix_filename(prefix,
-                                                       given_config_source.file));
+                               prefix_filename(prefix, given_config_source.file);
        }
 
        if (respect_includes == -1)