aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2006-12-14 08:29:33 +0000
committerFrederic Culot <calcurse@culot.org>2006-12-14 08:29:33 +0000
commit34eaa85ef35993da46f9151aafc4f4049af2c3c3 (patch)
treee35cac926435424b24062235b46af0768903adbb
parent414e20753aef26172c3ee97837a57acfbaaa8aca (diff)
downloadcalcurse-34eaa85ef35993da46f9151aafc4f4049af2c3c3.tar.gz
calcurse-34eaa85ef35993da46f9151aafc4f4049af2c3c3.zip
improvements in the memory deallocation in next_arg()
-rwxr-xr-xsrc/args.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/args.c b/src/args.c
index d987d7b..292a19b 100755
--- a/src/args.c
+++ b/src/args.c
@@ -1,4 +1,4 @@
-/* $calcurse: args.c,v 1.10 2006/12/11 09:36:47 culot Exp $ */
+/* $calcurse: args.c,v 1.11 2006/12/14 08:29:33 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -283,6 +283,8 @@ void next_arg(void)
fputs(mesg, stdout);
fputs("\n", stdout);
}
+ free(next_app->txt);
+ free(next_app);
}
/*