Module: wine Branch: master Commit: 68852827a19aaf81cfef9a6abf691601ea30d52a URL: https://gitlab.winehq.org/wine/wine/-/commit/68852827a19aaf81cfef9a6abf69160...
Author: Alex Henrie alexhenrie24@gmail.com Date: Thu Dec 1 20:05:25 2022 -0700
include: Annotate ber_(alloc_t|bvdup|init) with __WINE_(DEALLOC|MALLOC).
---
include/winber.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/include/winber.h b/include/winber.h index 65d9d50c789..83055fa8c72 100644 --- a/include/winber.h +++ b/include/winber.h @@ -26,14 +26,15 @@ typedef int ber_int_t; typedef unsigned int ber_tag_t; typedef unsigned int ber_len_t;
-BerElement * CDECL ber_alloc_t( int ); -BERVAL * CDECL ber_bvdup( BERVAL * ); -void CDECL ber_bvecfree( BERVAL ** ); +void CDECL ber_free( BerElement *, int ); void CDECL ber_bvfree( BERVAL * ); + +BerElement * CDECL ber_alloc_t( int ) __WINE_DEALLOC(ber_free) __WINE_MALLOC; +BERVAL * CDECL ber_bvdup( BERVAL * ) __WINE_DEALLOC(ber_bvfree) __WINE_MALLOC; +void CDECL ber_bvecfree( BERVAL ** ); ULONG CDECL ber_first_element( BerElement *, ULONG *, char ** ); int CDECL ber_flatten( BerElement *, BERVAL ** ); -void CDECL ber_free( BerElement *, int ); -BerElement * CDECL ber_init( BERVAL * ); +BerElement * CDECL ber_init( BERVAL * ) __WINE_DEALLOC(ber_free) __WINE_MALLOC; ULONG CDECL ber_next_element( BerElement *, ULONG *, char * ); ULONG CDECL ber_peek_tag( BerElement *, ULONG * ); int WINAPIV ber_printf( BerElement *, char *, ... );