summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/wee-eval.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/wee-eval.c b/src/core/wee-eval.c
index 81b4bd875..512961d0c 100644
--- a/src/core/wee-eval.c
+++ b/src/core/wee-eval.c
@@ -1272,7 +1272,8 @@ eval_hdata_get_value (struct t_hdata *hdata, void *pointer, const char *path,
property = string_strndup (pos + 1,
pos_open_paren - pos - 1);
ptr_value = hashtable_get_string (hashtable, property);
- free (property);
+ if (property)
+ free (property);
value = (ptr_value) ? strdup (ptr_value) : NULL;
break;
}