Skip to content

Commit 80d48a9

Browse files
committed
stir_shaken: Fix PKG memleak on non ppt=shaken
Fixes OpenSIPS#4215
1 parent c6dfb22 commit 80d48a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎modules/stir_shaken/stir_shaken.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2004,7 +2004,7 @@ static int get_parsed_identity(struct sip_msg *msg,
20042004
(*parsed)->ppt_hdr_param.len, (*parsed)->ppt_hdr_param.s);
20052005
rc = -2; /* consider we did not find a proper Identity header */
20062006
}
2007-
pkg_free(*parsed);
2007+
parsed_ctx_free(*parsed);
20082008
*parsed = NULL;
20092009
/* let's check other Identity hdr, if present */
20102010
identity_hdr = get_next_header_by_static_name ( identity_hdr,

0 commit comments

Comments
 (0)