Summary:
Coverity reports that we leak storage that 'buf' points to because we
are reassigning the variable, so lets free the previous strbuf so we
don't leak.
Fixes CID1400952
@fix
Depends on D8769
Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi
Reviewed By: segfaultxavi
Subscribers: segfaultxavi, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D8770
fail_if(str == NULL || strcmp(str, cbuf) != 0);
eina_strbuf_reset(buf);
- buf = eina_strbuf_new();
eina_strbuf_append(buf, "Hours: Minutes");
eina_strbuf_prepend_strftime(buf, "%I ", info);
eina_strbuf_insert_strftime(buf, "%M ", info, 10);