Skip to content
This repository has been archived by the owner on Aug 1, 2020. It is now read-only.
/ readsb Public archive

Commit

Permalink
make valgrind a bit happier
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf committed Dec 7, 2019
1 parent abfa278 commit 7d0567d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions readsb.c
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,8 @@ static void cleanup_and_exit(int code) {
while (s) {
ns = s->next;
free(s->listener_fds);
if (s->writer && s->writer->data)
free(s->writer->data);
if (s) free(s);
s = ns;
}
Expand Down

0 comments on commit 7d0567d

Please sign in to comment.