diff options
author | Jose M. Guisado <jguisado@soleta.eu> | 2021-03-11 14:37:21 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2021-03-11 14:39:07 +0100 |
commit | 829f8d8ac97e94619259374fd1f7e00cdf97c2a8 (patch) | |
tree | cbc4072ed96c6db26fc9cd011af845e7d92a868b /src/schedule.c | |
parent | e68fefeac780e6c87c6ca4722027288356eb0cc8 (diff) |
#997 Remove unnecessary strdup in og_dbi_queue_*
After executing an scheduled command/proc/task valgrind reported
leaks inside og_dbi_queue_{command,procedure,task}. String
duplication is not being freed after using them.
==21281== 36 bytes in 1 blocks are definitely lost in loss record 470 of
592
...
==21281== by 0x113DCB: og_dbi_queue_procedure (rest.c:2748)
==21281== by 0x113F91: og_dbi_queue_task (rest.c:2804)
==21281== by 0x114392: og_schedule_run (rest.c:2916)
==21281== by 0x112059: og_agent_timer_cb (schedule.c:441)
...
==21281== by 0x10E2A5: main (main.c:100)
These strdup are not necessary because the dbi result is not freed
before using them, it's safe to use the dbi result's reference to
this string.
Fix previous memleaks when executing scheduled commands, procedures
and tasks.
Diffstat (limited to 'src/schedule.c')
0 files changed, 0 insertions, 0 deletions