1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-09-28 21:19:10 +00:00

new should be combined with delete instead of free (to stop valgrind from complaining)

This commit is contained in:
Nikolas Garofil 2010-02-11 14:44:15 +01:00
parent 463836ebf9
commit b206ecc93d

View File

@ -249,7 +249,7 @@ void scan_execi_arg(struct text_object *obj, const char *arg)
if (sscanf(arg, "%f %n", &ed->interval, &n) <= 0) {
NORM_ERR("${execi* <interval> command}");
free(ed);
delete ed;
return;
}
ed->cmd = strndup(arg + n, text_buffer_size);