eina debug - set length after freeing/iterating over the keys

found by PVS studio
This commit is contained in:
Carsten Haitzler 2017-07-31 10:03:59 +09:00
parent ae79052376
commit 573d0cf586
1 changed files with 1 additions and 1 deletions

View File

@ -401,10 +401,10 @@ _opcodes_unregister_all(Eina_Debug_Session *session)
_opcode_reply_info *info = NULL;
if (!session) return;
session->cbs_length = 0;
for (i = 0; i < session->cbs_length; i++)
eina_list_free(session->cbs[i]);
free(session->cbs);
session->cbs_length = 0;
session->cbs = NULL;
EINA_LIST_FOREACH(session->opcode_reply_infos, l, info)