summaryrefslogtreecommitdiff
path: root/src/turtle_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/turtle_common.c')
-rw-r--r--src/turtle_common.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/turtle_common.c b/src/turtle_common.c
index adb68e63..c822b347 100644
--- a/src/turtle_common.c
+++ b/src/turtle_common.c
@@ -200,6 +200,10 @@ raptor_stringbuffer_append_turtle_string(raptor_stringbuffer* stringbuffer,
/* calculate output string size */
len = d-string;
+#ifdef __clang_analyzer__
+ /* clang --analyze does not know about ownership of next call */
+ free(string); string = NULL;
+#endif
/* string gets owned by the stringbuffer after this */
return raptor_stringbuffer_append_counted_string(stringbuffer,
string, len, 0);