mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-06-26 22:59:55 +00:00
squash with ll
This commit is contained in:
parent
6fc0c69b2e
commit
e94252ad65
@ -22,6 +22,7 @@
|
|||||||
#define _H_LL_
|
#define _H_LL_
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "common/locking.h"
|
#include "common/locking.h"
|
||||||
|
|
||||||
@ -97,6 +98,7 @@ static inline bool ll_removeData(struct ll * list, void * match)
|
|||||||
{
|
{
|
||||||
ll_removeNL(list, item);
|
ll_removeNL(list, item);
|
||||||
ll_unlock(list);
|
ll_unlock(list);
|
||||||
|
free(item);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
ll_unlock(list);
|
ll_unlock(list);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user