mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 11:31:16 +00:00
util: delete VIR_AUTOFREE
Commit 1e2ae2e311
deleted the last use
of VIR_AUTOFREE but forgot to delete the macro definition.
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
68fb03c7c0
commit
d402e71901
@ -488,17 +488,3 @@ void virDisposeString(char **strptr)
|
|||||||
*/
|
*/
|
||||||
#define VIR_DISPOSE(ptr) virDispose(1 ? (void *) &(ptr) : (ptr), 1, \
|
#define VIR_DISPOSE(ptr) virDispose(1 ? (void *) &(ptr) : (ptr), 1, \
|
||||||
sizeof(*(ptr)), NULL)
|
sizeof(*(ptr)), NULL)
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* VIR_AUTOFREE:
|
|
||||||
* @type: type of the variable to be freed automatically
|
|
||||||
*
|
|
||||||
* DEPRECATED: use g_autofree for new code. See HACKING
|
|
||||||
* for further guidance.
|
|
||||||
*
|
|
||||||
* Macro to automatically free the memory allocated to
|
|
||||||
* the variable declared with it by calling virFree
|
|
||||||
* when the variable goes out of scope.
|
|
||||||
*/
|
|
||||||
#define VIR_AUTOFREE(type) g_autofree type
|
|
||||||
|
Loading…
Reference in New Issue
Block a user