]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Fix resource leak
authorWang King <king.wang@huawei.com>
Wed, 12 Apr 2017 08:44:04 +0000 (16:44 +0800)
committerCole Robinson <crobinso@redhat.com>
Wed, 10 May 2017 19:34:32 +0000 (15:34 -0400)
commit268c7e085aa5dd615b1bd1f8800de0c7eee3dd0e
treed662692cfa389054b17ee9c0df240aa7adc70363
parent0c20c9092c1a85f9f553c6f57017b592cdaafabe
util: Fix resource leak

The virRotatingFileWriterAppend method leaks the file->entry
on the virRotatingFileWriterEntryNew failing path.

(cherry picked from commit 123770cd4e2d8a0a6166ec93175ddd96c9029947)
src/util/virrotatingfile.c