aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-sexp.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@HelixCode.com>2000-11-29 18:29:56 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-11-29 18:29:56 +0800
commitfe151f15997c2130bf5f71c752a960de05a1bf6b (patch)
treebdb23e058c58579b32405fa407f38f3160262a17 /e-util/e-sexp.c
parent0a68cff31e3ee31622eb328de3afbeaf872b1c21 (diff)
downloadgsoc2013-evolution-fe151f15997c2130bf5f71c752a960de05a1bf6b.tar.gz
gsoc2013-evolution-fe151f15997c2130bf5f71c752a960de05a1bf6b.tar.zst
gsoc2013-evolution-fe151f15997c2130bf5f71c752a960de05a1bf6b.zip
Plug a memleak, need to free results from term_eval(). (term_eval_gt):
2000-11-29 Not Zed <NotZed@HelixCode.com> * e-sexp.c (term_eval_lt): Plug a memleak, need to free results from term_eval(). (term_eval_gt): (term_eval_eq): 2000-11-27 Not Zed <NotZed@HelixCode.com> * e-memory.c (e_mempool_new): Added some locking to global data. This should make the interfaces mt-safe, although each object is only per-thread safe. svn path=/trunk/; revision=6710
Diffstat (limited to 'e-util/e-sexp.c')
-rw-r--r--e-util/e-sexp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/e-util/e-sexp.c b/e-util/e-sexp.c
index 2757ea2043..08b9bb6a62 100644
--- a/e-util/e-sexp.c
+++ b/e-util/e-sexp.c
@@ -320,6 +320,8 @@ term_eval_lt(struct _ESExp *f, int argc, struct _ESExpTerm **argv, void *data)
r->type = ESEXP_RES_BOOL;
r->value.bool = strcmp(r1->value.string, r2->value.string) < 0;
}
+ e_sexp_result_free(r1);
+ e_sexp_result_free(r2);
}
return r;
}
@@ -344,6 +346,8 @@ term_eval_gt(struct _ESExp *f, int argc, struct _ESExpTerm **argv, void *data)
r->type = ESEXP_RES_BOOL;
r->value.bool = strcmp(r1->value.string, r2->value.string) > 0;
}
+ e_sexp_result_free(r1);
+ e_sexp_result_free(r2);
}
return r;
}
@@ -368,6 +372,8 @@ term_eval_eq(struct _ESExp *f, int argc, struct _ESExpTerm **argv, void *data)
} else if (r1->type == ESEXP_RES_STRING) {
r->value.bool = strcmp(r1->value.string, r2->value.string) == 0;
}
+ e_sexp_result_free(r1);
+ e_sexp_result_free(r2);
}
return r;
}
h'>* - Add shared SYBASE descriptionsunpoet2016-11-221-0/+1 * update lang/ruby21 to 2.1.10swills2016-11-221-2/+2 * Insert missing space in component list.tcberner2016-11-211-1/+1 * - Add shared LZ4 and ZSTD descriptionssunpoet2016-11-211-0/+2 * lang/ruby23: update to 2.3.2swills2016-11-211-2/+2 * Use @postunexec instead of @unexec which is deprecatedbapt2016-11-201-1/+1 * Long awaited, finally update the default version of GCC in the Portsgerald2016-11-201-2/+2 * Import some LXQt core components (required by forthcoming updateolivierd2016-11-191-0/+97 * lang/ruby22: update to 2.2.6swills2016-11-181-2/+2 * Clean up dead sourceforge mirrorsamdmi32016-11-181-2/+2 * Set a PORTSCOUT limit for the PyQt5 ports.tcberner2016-11-151-0/+2 * Importing KDE Frameworks into the ports tree (required for newer KDE Desktop ...tcberner2016-11-152-13/+315 * Udpate PyQt5 to 5.6.2tcberner2016-11-141-3/+3 * All supported versions of FreeBSD that install clang have version 3.4.1 orantoine2016-11-132-8/+8 * Optimize COPYTREE_* macros.mat2016-11-091-8/+9 * - Fix typosunpoet2016-11-061-1/+1 * Add linux-c7-harfbuzz and linux-c7-graphite2, needed by linux-c7-pango.tijl2016-11-051-0/+2 * Drop CONFLICTS_BUILD on Qt3tcberner2016-11-051-3/+0 * Add linux-c6-libelf, needed by linux-c6-dri.tijl2016-11-051-0/+1 * Remove linux-c6-libGLU and linux-c7-libGLU. They were used in combinationtijl2016-11-041-1/+0 * www/firefox: unbreak build with DEBUG=on after r425099jbeich2016-11-041-3/+2 * Remove NVIDIA option from Linux ports now that the nvidia-driver can betijl2016-11-041-1/+0 * Fix depend on mod_php70.mat2016-11-031-1/+2 * Change the default Perl version to 5.24.mat2016-11-031-1/+1 * Remove USE_LIBRUBY and DEPEND_LIBRUBYswills2016-11-031-7/+0 * www/firefox: update to 50.0 (rc1)jbeich2016-11-022-7/+10 * Fix directory creation when primary group is different from user nameantoine2016-11-011-1/+2 * Add an annotation to packages that are marked as deprecated and the one havingbapt2016-11-011-0/+10 * Fix package upgrade setting wrong ownership on a package's $HOME.bdrewery2016-11-011-1/+1 * Don't truncate DEPENDS_ARGS here.bdrewery2016-11-011-2/+2 * lang/mono: update to 4.6.1.5.dbn2016-10-311-3/+71 * kde.mk: Further cosmetic cleanupsrakuco2016-10-291-6/+6 * kde.mk: Replace spaces with tabsrakuco2016-10-291-1/+1 * Add a Perl CORE QA check.mat2016-10-292-1/+50 * Fix file modes after extracting.mat2016-10-291-0/+12 * Update Qt to 5.6.2 [1,2]tcberner2016-10-281-3/+2 * Introduce USES=varnishfeld2016-10-262-0/+33