mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-02-12 08:41:51 +00:00
datastorage: fix ap_array_unlink_entry always returns NULL
For an unknown reason the entry that is returned in ap_array_unlink_entry was always set to NULL. This commit changes the function so it returns the ap that should be unlinked. This is needed to free the corresponding memory that is allocated by the ap struct. Thanks a lot to ptpt52 for reporting this issue. Signed-off-by: Nick Hainke <vincent@systemli.org>
This commit is contained in:
parent
e596ff1317
commit
d74001d8ee
1 changed files with 0 additions and 1 deletions
|
@ -1004,7 +1004,6 @@ static __inline__ ap* ap_array_unlink_entry(ap** i)
|
|||
{
|
||||
ap* entry = *i;
|
||||
*i = entry->next_ap;
|
||||
entry = NULL;
|
||||
ap_entry_last--;
|
||||
|
||||
return entry;
|
||||
|
|
Loading…
Reference in a new issue