summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-07-15 17:43:33 +0200
committerDavid Robillard <d@drobilla.net>2020-07-16 23:37:49 +0200
commitafa3f9f7c99886ed898d6284c1615839a4202fab (patch)
treec7f0ff8782afe731d01e138d6389dc16b936511f /src
parent5682a7eeda2a050dec1f963a01b06b53e9df0a2f (diff)
downloadlilv-afa3f9f7c99886ed898d6284c1615839a4202fab.tar.gz
lilv-afa3f9f7c99886ed898d6284c1615839a4202fab.tar.bz2
lilv-afa3f9f7c99886ed898d6284c1615839a4202fab.zip
Fix potential va_list leak
Diffstat (limited to 'src')
-rw-r--r--src/util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index dd29488..6f9c2b3 100644
--- a/src/util.c
+++ b/src/util.c
@@ -85,6 +85,7 @@ lilv_strjoin(const char* first, ...)
const size_t this_len = strlen(s);
char* new_result = (char*)realloc(result, len + this_len + 1);
if (!new_result) {
+ va_end(args);
free(result);
return NULL;
}