mirror of https://git.zx2c4.com/WireGuard
wg-quick: android: check for null in binder cleanup functions
This commit is contained in:
parent
8eb8443709
commit
0b27b1d315
|
@ -358,14 +358,17 @@ static __attribute__((__constructor__(65535))) void load_symbols(void)
|
|||
|
||||
static void cleanup_binder(AIBinder **binder)
|
||||
{
|
||||
if (*binder)
|
||||
AIBinder_decStrong(*binder);
|
||||
}
|
||||
static void cleanup_status(AStatus **status)
|
||||
{
|
||||
if (*status)
|
||||
AStatus_delete(*status);
|
||||
}
|
||||
static void cleanup_parcel(AParcel **parcel)
|
||||
{
|
||||
if (*parcel)
|
||||
AParcel_delete(*parcel);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue