aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc-make/atom.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2018-05-07 00:27:48 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2018-05-07 00:27:48 +0200
commit4f2e1ab2a54e49d636c6f4ac9e39f0385ada24db (patch)
tree29455f665fe933cd76ac6c1c90b9916898f9050d /src/blogc-make/atom.c
parent42259e6b0036935e00fca6b780f8d8b616d132c7 (diff)
downloadblogc-4f2e1ab2a54e49d636c6f4ac9e39f0385ada24db.tar.gz
blogc-4f2e1ab2a54e49d636c6f4ac9e39f0385ada24db.tar.bz2
blogc-4f2e1ab2a54e49d636c6f4ac9e39f0385ada24db.zip
Revert "build: introduced a minor memory leak to test clang-analyzer"
This reverts commit 42259e6b0036935e00fca6b780f8d8b616d132c7.
Diffstat (limited to 'src/blogc-make/atom.c')
-rw-r--r--src/blogc-make/atom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blogc-make/atom.c b/src/blogc-make/atom.c
index a1102c0..d5f5387 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);