From afbec38d6e953eb338055c4590ce0d94cf933640 Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Mon, 27 Aug 2012 21:11:14 +0200 Subject: [PATCH] Release all resources when quitting the main loop. This will allow running under valgrind to detect memory leaks and the like. Signed-off-by: Richard Cochran --- ptp4l.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ptp4l.c b/ptp4l.c index d72c27a..ea1ca90 100644 --- a/ptp4l.c +++ b/ptp4l.c @@ -279,5 +279,6 @@ int main(int argc, char *argv[]) break; } + clock_destroy(clock); return 0; }