From 9f20a20ebd282702fc618a740af5a7878f11f60a Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Wed, 25 Apr 2012 11:26:35 +0400 Subject: [PATCH] lib/sectionsdclient/sectionsdcontrol.cpp: add --freemem command Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/92a12e408f555f1b61965c023358e29b3a33cbde Author: [CST] Focus Date: 2012-04-25 (Wed, 25 Apr 2012) --- lib/sectionsdclient/sectionsdcontrol.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/sectionsdclient/sectionsdcontrol.cpp b/lib/sectionsdclient/sectionsdcontrol.cpp index 365100e21..505dd80f5 100644 --- a/lib/sectionsdclient/sectionsdcontrol.cpp +++ b/lib/sectionsdclient/sectionsdcontrol.cpp @@ -70,6 +70,11 @@ int main(int argc, char** argv) if (!strcmp(argv[i], "--dump")) { client.dumpStatus(); } + else + if (!strcmp(argv[i], "--freemem")) { + printf("Removing all cached epg...\n"); + client.freeMemory(); + } } return 0;