(free_erase_list): test queue before free.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2021-10-02 11:41:07 +03:00
parent 7871db5258
commit 8b79bfe32d

View File

@ -308,6 +308,7 @@ free_link (void *data)
static inline void *
free_erase_list (GQueue * lp)
{
if (lp != NULL)
g_queue_free_full (lp, free_link);
return NULL;