Submitter: Guy Harris (g...@alum.mit.edu)
Changed: branch: master-2.2
976be71 by Guy Harris (g...@alum.mit.edu):
Fix another leak, which happens with -E occurrence=l.
For each occurrence, if there was already an occurrence in the array, we
were just removing it. not freeing what it pointed to.
While we're at it, expand comments. and always check the array size with
"!= 0", not "> 0" - the value is unsigned, so they're equivalent, but
this makes the code more self-consistent.
Reviewed-by: Guy Harris <g...@alum.mit.edu>
(cherry picked from commit 9a5217bdd4680e36f2e92838348bd4ea010d28a0)
from e19aba3 GIOP: use wmem packet scope for get_modname_from_repoid()
adds 976be71 Fix another leak, which happens with -E occurrence=l.
Summary of changes:
epan/print.c | 24 ++++++++++++++++++++----
1 file changed, 20 insertions(+), 4 deletions(-)
Sent via: Wireshark-commits mailing list <email@example.com>