Skip to content

Commit

Permalink
Fixed free which lead to bogus memory access:
Browse files Browse the repository at this point in the history
  • Loading branch information
vladpaiu committed Mar 20, 2014
1 parent 804c9f7 commit f14766a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions modules/xcap_client/xcap_callbacks.c
Expand Up @@ -76,8 +76,8 @@ void destroy_xcapcb_list(void)
xcb= xcapcb_list;
while(xcb)
{
prev_xcb= xcb;
xcb= xcb->next;
shm_free(xcb);
prev_xcb=xcb;
xcb=xcb->next;
shm_free(prev_xcb);
}
}
8 changes: 4 additions & 4 deletions modules/xcap_client/xcap_functions.c
Expand Up @@ -83,10 +83,10 @@ void xcapFreeNodeSel(xcap_node_sel_t* node)
n= node->ns_list;
while(n)
{
m= n;
n= n->next;
pkg_free(n->value.s);
pkg_free(n);
m=n;
n=n->next;
pkg_free(m->value.s);
pkg_free(m);
}

pkg_free(node);
Expand Down

0 comments on commit f14766a

Please sign in to comment.