Fix another leak, which happens with -E occurrence=l.
authorGuy Harris <guy@alum.mit.edu>
Wed, 7 Mar 2018 08:49:28 +0000 (00:49 -0800)
committerGuy Harris <guy@alum.mit.edu>
Wed, 7 Mar 2018 08:51:32 +0000 (08:51 +0000)
commit9a5217bdd4680e36f2e92838348bd4ea010d28a0
tree58b8bd680b5fe8fbffb6be889ba3a75982181991
parent37723968d2b37c52f5809398b85adffdc815ce9d
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.

Change-Id: I538f46b296a7721a39ba4366c2f6269e7e097b0d
Reviewed-on: https://code.wireshark.org/review/26328
Reviewed-by: Guy Harris <guy@alum.mit.edu>
epan/print.c