summaryrefslogtreecommitdiffstats
path: root/control.c
diff options
context:
space:
mode:
authornicm <nicm>2019-05-31 11:34:09 +0000
committernicm <nicm>2019-05-31 11:34:09 +0000
commit82e47403c6a8d6fff90f77e9262840050b8e6b2e (patch)
tree38285e4e7654ad6d7e59facaba4b500fbf10ad92 /control.c
parentb26523c26dc7cf0a24a1adb787aa1816deb40693 (diff)
Allow % strings that are all numbers or %s, and fix a double free. Both
reported by George Nachman, GitHub issues 1765 and 1766.
Diffstat (limited to 'control.c')
-rw-r--r--control.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/control.c b/control.c
index b7ac3f62..16fa71bb 100644
--- a/control.c
+++ b/control.c
@@ -91,7 +91,6 @@ control_callback(struct client *c, int closed, __unused void *data)
case CMD_PARSE_ERROR:
item = cmdq_get_callback(control_error, pr->error);
cmdq_append(c, item);
- free(pr->error);
break;
case CMD_PARSE_SUCCESS:
item = cmdq_get_command(pr->cmdlist, NULL, NULL, 0);