[gnumeric] sstest: plug leak.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] sstest: plug leak.
- Date: Wed, 1 Sep 2010 18:44:14 +0000 (UTC)
commit 61cf02989c5c85ae111df5ac9af267091f4d8c56
Author: Morten Welinder <terra gnome org>
Date: Wed Sep 1 14:44:00 2010 -0400
sstest: plug leak.
ChangeLog | 4 ++++
src/func.c | 4 +++-
2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 41efe1c..b25939d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-09-01 Morten Welinder <terra gnome org>
+
+ * src/func.c (check_argument_refs): Plug leak.
+
2010-08-31 Morten Welinder <terra gnome org>
* src/wbc-gtk.c (set_entry_contents): Set scalar values using the
diff --git a/src/func.c b/src/func.c
index 112164d..800ee2a 100644
--- a/src/func.c
+++ b/src/func.c
@@ -552,8 +552,10 @@ check_argument_refs (const char *text, GnmFunc const *fd)
for (i = 0; TRUE; i++) {
char *thisarg = function_def_get_arg_name (fd, i);
gboolean found;
- if (!thisarg)
+ if (!thisarg) {
+ g_free (argname);
return FALSE;
+ }
found = strcmp (argname, thisarg) == 0;
g_free (thisarg);
if (found)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]