locking: Resolve resource leaks on non error path

Both 'dir' and 'path' were not free'd on successful return
This commit is contained in:
John Ferlan 2013-01-15 09:23:29 -05:00 committed by Ján Tomko
parent 65aa3e3414
commit 687554cd50

View File

@ -365,6 +365,8 @@ retry:
VIR_DEBUG("Lockspace %s has been registered", path);
}
VIR_FREE(path);
VIR_FREE(dir);
return 0;
error_unlink: