Repository: lucy Updated Branches: refs/heads/0.4 cb07bc532 -> 481653b59
Fix refcount leaks in Lock. Project: http://git-wip-us.apache.org/repos/asf/lucy/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/98144706 Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/98144706 Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/98144706 Branch: refs/heads/0.4 Commit: 9814470615833a4ff96999b649544b164fae3493 Parents: cb07bc5 Author: Marvin Humphrey <[email protected]> Authored: Thu Aug 21 18:06:03 2014 -0700 Committer: Marvin Humphrey <[email protected]> Committed: Thu Aug 21 18:06:03 2014 -0700 ---------------------------------------------------------------------- core/Lucy/Store/Lock.c | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy/blob/98144706/core/Lucy/Store/Lock.c ---------------------------------------------------------------------- diff --git a/core/Lucy/Store/Lock.c b/core/Lucy/Store/Lock.c index 48f6c96..9c4acad 100644 --- a/core/Lucy/Store/Lock.c +++ b/core/Lucy/Store/Lock.c @@ -201,6 +201,8 @@ LFLock_Request_IMP(LockFileLock *self) { context.json = json; Err *json_error = Err_trap(S_write_lockfile_json, &context); bool wrote_json = !json_error; + DECREF(outstream); + DECREF(json); if (wrote_json) { success = Folder_Hard_Link(ivars->folder, ivars->link_path, ivars->lock_path);
