чување 3735ffb129e08c040752b2c0db860e31bc5aa566
родитељ 050330558e035e7a04f1a4d4f135244c1fae5268
Аутор: Страхиња Радић <contact@strahinja.org>
Датум: Wed, 30 Dec 2020 15:18:02 +0100
Added a missing call to free(); examples/includes build fix
Signed-off-by: Страхиња Радић <contact@strahinja.org>
Diffstat:
измењених датотека: 4, додавања: 4(+), брисања: 2(-)
diff --git a/examples/includes/inc/copy.slw b/examples/includes/inc/copy.slw
@@ -1,2 +1,2 @@
-{span}([Link to index](../../../index.html), from include) Copyright © _someguy_{/span}
+{span}([Link to index](../../index.html), from include) Copyright © _someguy_{/span}
diff --git a/examples/includes/index.html.do b/examples/includes/index.html.do
@@ -1,4 +1,5 @@
for f in *.slw inc/*.slw; do
echo $f
done | xargs redo-ifchange
+../../slweb -d $(dirname $2.slw) $(basename -s.html $2).slw >$3
diff --git a/index.html b/index.html
@@ -127,7 +127,7 @@ this program. If not, see <<a href="https://www.gnu.org/licenses">https://www
<div id="git-log">
Previous commit:
-index.slw 388802f 2020-12-29 19:54:19 +0100 (Страхиња Радић) (HEAD -> master, tag: v0.3.1-beta, origin/master, origin/HEAD)
+index.slw 0503305 2020-12-30 14:19:02 +0100 (Страхиња Радић) (HEAD -> master, tag: v0.3.1-beta, origin/master, origin/HEAD)
</div><!--git-log-->
diff --git a/slweb.c b/slweb.c
@@ -184,6 +184,7 @@ print_command(uint8_t* command, FILE* output)
fprintf(output, "%s\n", cmd_output_line);
}
+ free(cmd_output_line);
pclose(cmd_output);
return 0;