summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorTorbjorn Granlund <torbjorng@google.com>2015-10-14 20:34:24 +0200
committerTorbjorn Granlund <torbjorng@google.com>2015-10-14 20:34:24 +0200
commit096c498179bc037595193620b9134a8bf80ff703 (patch)
tree534f3df436b30f6dec46d099572c4915f4b85346 /demos
parent82a8e3c038a973843932998f579cfe28093683ec (diff)
downloadgmp-096c498179bc037595193620b9134a8bf80ff703.tar.gz
(main): Clear out a variable.
Diffstat (limited to 'demos')
-rw-r--r--demos/pexpr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/demos/pexpr.c b/demos/pexpr.c
index ce2818781..d5009e9ee 100644
--- a/demos/pexpr.c
+++ b/demos/pexpr.c
@@ -1,7 +1,7 @@
/* Program for computing integer expressions using the GNU Multiple Precision
Arithmetic Library.
-Copyright 1997, 1999-2002, 2005, 2008, 2012 Free Software Foundation, Inc.
+Copyright 1997, 1999-2002, 2005, 2008, 2012, 2015 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
@@ -480,6 +480,8 @@ main (int argc, char **argv)
free_expr (e);
}
+ mpz_clear (r);
+
exit (errcode);
}