malloc_referenced adds +1 to int32 pointer so use its release

This commit is contained in:
Fredrik Holmqvist
2018-04-22 12:47:30 +02:00
parent c0ceea9c79
commit 58c99ce4d4
+1 -1
View File
@@ -218,7 +218,7 @@ common_setgroups(int groupCount, const gid_t* groupList, bool kernel)
if (!IS_USER_ADDRESS(groupList)
|| user_memcpy(newGroups, groupList,
sizeof(gid_t) * groupCount) != B_OK) {
free(newGroups);
malloc_referenced_release(newGroups);
return B_BAD_ADDRESS;
}
}