mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-02-11 08:28:30 +00:00
new should be combined with delete instead of free (to stop valgrind from complaining)
This commit is contained in:
parent
463836ebf9
commit
b206ecc93d
@ -249,7 +249,7 @@ void scan_execi_arg(struct text_object *obj, const char *arg)
|
|||||||
|
|
||||||
if (sscanf(arg, "%f %n", &ed->interval, &n) <= 0) {
|
if (sscanf(arg, "%f %n", &ed->interval, &n) <= 0) {
|
||||||
NORM_ERR("${execi* <interval> command}");
|
NORM_ERR("${execi* <interval> command}");
|
||||||
free(ed);
|
delete ed;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ed->cmd = strndup(arg + n, text_buffer_size);
|
ed->cmd = strndup(arg + n, text_buffer_size);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user