aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-27 21:44:39 +0200
committerDavid Robillard <d@drobilla.net>2019-07-29 01:59:21 +0200
commitc74467ae07cc419b913998d96315d0f7ef5d2b21 (patch)
treefeca5c80d5fae959a8766dce12e20ff029fa84bf /pugl/detail
parent37fe29ab9c4a5ea22bc5996b020fa39c854965fa (diff)
downloadpugl-c74467ae07cc419b913998d96315d0f7ef5d2b21.tar.gz
pugl-c74467ae07cc419b913998d96315d0f7ef5d2b21.tar.bz2
pugl-c74467ae07cc419b913998d96315d0f7ef5d2b21.zip
Fix potential memory leak on error
Diffstat (limited to 'pugl/detail')
-rw-r--r--pugl/detail/implementation.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pugl/detail/implementation.c b/pugl/detail/implementation.c
index 5cd7ce5..fd7ce81 100644
--- a/pugl/detail/implementation.c
+++ b/pugl/detail/implementation.c
@@ -43,6 +43,7 @@ puglInit(int* PUGL_UNUSED(pargc), char** PUGL_UNUSED(argv))
PuglInternals* impl = puglInitInternals();
if (!impl) {
+ free(view);
return NULL;
}