projects
/
platform
/
upstream
/
evolution-data-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1867a41
)
ESexp: Check for NULL before freeing a GPtrArray
author
Tristan Van Berkom
<tristanvb@openismus.com>
Fri, 22 Nov 2013 13:54:19 +0000
(22:54 +0900)
committer
Tristan Van Berkom
<tristanvb@openismus.com>
Sun, 24 Nov 2013 13:23:45 +0000
(22:23 +0900)
libedataserver/e-sexp.c
patch
|
blob
|
history
diff --git
a/libedataserver/e-sexp.c
b/libedataserver/e-sexp.c
index
d3b0146
..
d661362
100644
(file)
--- a/
libedataserver/e-sexp.c
+++ b/
libedataserver/e-sexp.c
@@
-205,7
+205,8
@@
e_sexp_result_free (struct _ESExp *f,
switch (t->type) {
case ESEXP_RES_ARRAY_PTR:
- g_ptr_array_free (t->value.ptrarray, TRUE);
+ if (t->value.ptrarray)
+ g_ptr_array_free (t->value.ptrarray, TRUE);
break;
case ESEXP_RES_BOOL:
case ESEXP_RES_INT: