Skip to content

Commit

Permalink
ims_registrar_scscf: free_uint_fixup: fix memleak/freeing the wrong p…
Browse files Browse the repository at this point in the history
…arameter

The free_uint_fixup() freed the wrong parameter in the past.
  • Loading branch information
lynxis authored and henningw committed Apr 29, 2024
1 parent 6f908f0 commit c3e6c1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/ims_registrar_scscf/ims_registrar_scscf_mod.c
Expand Up @@ -814,7 +814,7 @@ static int uint_fixup(void **param, int param_no)

static int free_uint_fixup(void **param, int param_no)
{
if(*param && param_no == 2) {
if(*param && param_no == 4) {
pkg_free(*param);
*param = 0;
}
Expand Down

0 comments on commit c3e6c1e

Please sign in to comment.