Skip to content

Commit

Permalink
seas: avoid double free and leak
Browse files Browse the repository at this point in the history
(cherry picked from commit 366104d)
  • Loading branch information
miconda committed Aug 30, 2017
1 parent 3ba4cc6 commit 09488d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/seas/seas_action.c
Expand Up @@ -518,7 +518,7 @@ int ac_cancel(as_p the_as,unsigned char processor_id,unsigned int flags,char *ac
if(headers.s)
pkg_free(headers.s);
if(body.s)
pkg_free(headers.s);
pkg_free(body.s);
if(my_msg){
if(my_msg->headers)
free_hdr_field_lst(my_msg->headers);
Expand Down
1 change: 1 addition & 0 deletions src/modules/seas/utils.c
Expand Up @@ -90,6 +90,7 @@ int buffered_printer(FILE* infd)
printf("PARSED:%d,last=%d,end=%d\n",k++,last,end);
free_sip_msg(&msg);
pkg_free(missatge);
missatge = NULL;
memmove(mybuffer,&mybuffer[end],1400-end);
last=1400-end;
}
Expand Down

0 comments on commit 09488d0

Please sign in to comment.