]> git.proxmox.com Git - libgit2.git/commit
config: don't use freed memory on error
authorCarlos Martín Nieto <carlos@cmartin.tk>
Thu, 3 May 2012 14:07:22 +0000 (16:07 +0200)
committerCarlos Martín Nieto <carlos@cmartin.tk>
Tue, 8 May 2012 19:35:51 +0000 (21:35 +0200)
commit3df9cc592220b1da73a1d4ac82847c3c6d92a1fa
treebc2e315d2a508b53615513c00dfd20f0366c82af
parent2c0cdc3a86acd917087937f6348062b3951217b5
config: don't use freed memory on error

Change the order and set a NULL so we don't try to access freed memory
in case of an error.
src/config_file.c