]> git.ipfire.org Git - thirdparty/libvirt.git/commit
src: don't use VIR_FREE on an object allocation
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 19 May 2020 14:55:55 +0000 (15:55 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 3 Jun 2020 09:20:17 +0000 (10:20 +0100)
commita771351ae49c0b8f5fce8664fd11345874b045d8
tree97a2daeacc4695717dad095628360a71ffe47d59
parenta9fa62f327eaaaf4f0a5594345ffa577c784c378
src: don't use VIR_FREE on an object allocation

Memory allocated using g_object_new must never be released using
VIR_FREE/g_free because g_object_new uses a special allocation
strategy internally.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/rpc/virnettlscontext.c