mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-09 13:57:27 +03:00
util: alloc: Remove VIR_AUTODISPOSE_STR
There are no users any more. The replacement is to use g_auto and virSecureEraseString explicitly. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
7979d85783
commit
2025001609
@ -349,13 +349,3 @@ void virDisposeString(char **strptr)
|
||||
* This macro is not safe to be used on arguments with side effects.
|
||||
*/
|
||||
#define VIR_DISPOSE_STRING(ptr) virDisposeString(&(ptr))
|
||||
|
||||
/**
|
||||
* VIR_AUTODISPOSE_STR:
|
||||
*
|
||||
* Macro to automatically free and clear the memory allocated to
|
||||
* the string variable declared with it by calling virDisposeString
|
||||
* when the variable goes out of scope.
|
||||
*/
|
||||
#define VIR_AUTODISPOSE_STR \
|
||||
__attribute__((cleanup(virDisposeString))) char *
|
||||
|
Loading…
x
Reference in New Issue
Block a user