From c0c2bb98a23b649c55e5d8a55395073fdaa8d6fa Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Fri, 3 Sep 2021 12:11:31 +1000 Subject: Add completion handling for dynamic meters and columns Be sure to free dynamic memory allocated for meters and columns strings, no-op on platforms other than pcp. Closes #774 --- CommandLine.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'CommandLine.c') diff --git a/CommandLine.c b/CommandLine.c index ecfc731e..f0d22557 100644 --- a/CommandLine.c +++ b/CommandLine.c @@ -393,10 +393,8 @@ int CommandLine_run(const char* name, int argc, char** argv) { /* Delete these last, since they can get accessed in the crash handler */ Settings_delete(settings); - if (dc) - Hashtable_delete(dc); - if (dm) - Hashtable_delete(dm); + DynamicColumns_delete(dc); + DynamicMeters_delete(dm); return 0; } -- cgit v1.2.3