diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2018-05-07 00:14:39 +0200 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2018-05-07 00:14:39 +0200 |
commit | 42259e6b0036935e00fca6b780f8d8b616d132c7 (patch) | |
tree | 86215e64b7404fbb962db6eab633282837b4b142 /src/blogc-make | |
parent | 9543748bda8bfcad015243a9d312cf203431b29f (diff) | |
download | blogc-42259e6b0036935e00fca6b780f8d8b616d132c7.tar.gz blogc-42259e6b0036935e00fca6b780f8d8b616d132c7.tar.bz2 blogc-42259e6b0036935e00fca6b780f8d8b616d132c7.zip |
build: introduced a minor memory leak to test clang-analyzer
Diffstat (limited to 'src/blogc-make')
-rw-r--r-- | src/blogc-make/atom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blogc-make/atom.c b/src/blogc-make/atom.c index d5f5387..a1102c0 100644 --- a/src/blogc-make/atom.c +++ b/src/blogc-make/atom.c @@ -73,13 +73,13 @@ bm_atom_deploy(bm_settings_t *settings, bc_error_t **err) if (-1 == write(fd, content, strlen(content))) { *err = bc_error_new_printf(BLOGC_MAKE_ERROR_ATOM, "Failed to write to temporary atom template: %s", strerror(errno)); - free(content); + //free(content); close(fd); unlink(fname); return NULL; } - free(content); + //free(content); close(fd); return bc_strdup(fname); |