summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
authorJohn Ferlan <jferlan@redhat.com>2014-11-30 09:35:12 -0500
committerJohn Ferlan <jferlan@redhat.com>2014-12-02 11:03:40 -0500
commitadbbff5fb73edfe6c5f6ba79ddbff87a412f2b5b (patch)
tree30d59f0bf6b9bba214e7253316a8b7245389eac8 /cfg.mk
parentd1219054e3592dd309ba7091868d0e48f1644ea9 (diff)
downloadlibvirt-adbbff5fb73edfe6c5f6ba79ddbff87a412f2b5b.tar.gz
Replace virStoragePoolFree with virObjectUnref
Since virStoragePoolFree will call virObjectUnref anyway, let's just use that directly so as to avoid the possibility that we inadvertently clear out a pending error message when using the public API.
Diffstat (limited to 'cfg.mk')
-rw-r--r--cfg.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/cfg.mk b/cfg.mk
index 5da7b22bf2..4766f0bf46 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -992,7 +992,7 @@ sc_prohibit_system_error_with_vir_err:
# functions. There's a corresponding exclude to allow usage within tests,
# docs, examples, tools, src/libvirt-*.c, and include/libvirt/libvirt-*.h
sc_prohibit_virXXXFree:
- @prohibit='\bvir(Domain|Network|NodeDevice|StorageVol)Free\b' \
+ @prohibit='\bvir(Domain|Network|NodeDevice|StorageVol|StoragePool)Free\b' \
exclude='sc_prohibit_virXXXFree' \
halt='avoid using 'virXXXFree', use 'virObjectUnref' instead' \
$(_sc_search_regexp)