diff options
| author | Russell Belfer <rb@github.com> | 2012-05-04 11:06:12 -0700 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2012-05-04 11:06:12 -0700 |
| commit | b709e95146b9d56e2c009915ccea7a86c77d4202 (patch) | |
| tree | c9257b8278c8d1e28b0cfe5969317ef0ed63c315 /src/config_file.c | |
| parent | f917481ee84cbba481c1854cccdedb2d98377d43 (diff) | |
| download | libgit2-b709e95146b9d56e2c009915ccea7a86c77d4202.tar.gz | |
Fix memory leaks and use after free
Diffstat (limited to 'src/config_file.c')
| -rw-r--r-- | src/config_file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config_file.c b/src/config_file.c index ed5caf980..746d9655c 100644 --- a/src/config_file.c +++ b/src/config_file.c @@ -265,6 +265,7 @@ static int config_set(git_config_file *cfg, const char *name, const char *value) cvar_free(old_var); if (config_write(b, key, NULL, value) < 0) { + git_strmap_delete(b->values, var->key); cvar_free(var); return -1; } |
