aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-sexp.c
diff options
context:
space:
mode:
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;
}
9:39 +0800'>2006-11-201-63/+215 * Update to 0.17.0.3.lawrance2006-05-161-125/+354 * - Add missing entriesclement2004-05-251-0/+2