]> git.proxmox.com Git - libgit2.git/commitdiff
Do not free config when creating remote
authorYichao Yu <yyc1992@gmail.com>
Sat, 29 Apr 2017 16:28:35 +0000 (12:28 -0400)
committerYichao Yu <yyc1992@gmail.com>
Sat, 29 Apr 2017 16:28:35 +0000 (12:28 -0400)
The regression was introduced in 22261344de18b3cc60ee6937468d66a6a6a28875

src/remote.c

index d3132f75c25ebd54f6d32c84d577f536b756c10a..15752ab275112538eadf9a730b72f94be004e606 100644 (file)
@@ -260,7 +260,6 @@ on_error:
        if (error)
                git_remote_free(remote);
 
-       git_config_free(config);
        git_buf_free(&canonical_url);
        git_buf_free(&var);
        return error;