tap-sctp: remove leak of tmp_info (found by clang).
Change-Id: If2eff49d5cf2ec4c0df5e9cafc1c69383502d8ae Reviewed-on: https://code.wireshark.org/review/26433 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
d6161a656b
commit
f96abc7fc0
|
@ -709,6 +709,9 @@ packet(void *tapdata _U_, packet_info *pinfo, epan_dissect_t *edt _U_, const voi
|
|||
error->info_text = "INFOS";
|
||||
info->error_info_list = g_list_append(info->error_info_list, error);
|
||||
}
|
||||
} else {
|
||||
free_address_wmem(NULL, &tmp_info.src);
|
||||
free_address_wmem(NULL, &tmp_info.dst);
|
||||
}
|
||||
} /* endif (!info) */
|
||||
else
|
||||
|
@ -1105,8 +1108,11 @@ packet(void *tapdata _U_, packet_info *pinfo, epan_dissect_t *edt _U_, const voi
|
|||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
free_address_wmem(NULL, &tmp_info.src);
|
||||
free_address_wmem(NULL, &tmp_info.dst);
|
||||
|
||||
if (datachunk || forwardchunk)
|
||||
{
|
||||
if (info->direction == 1)
|
||||
|
|
Loading…
Reference in New Issue