diff options
author | David Robillard <d@drobilla.net> | 2019-07-27 21:44:39 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-07-29 01:59:21 +0200 |
commit | c74467ae07cc419b913998d96315d0f7ef5d2b21 (patch) | |
tree | feca5c80d5fae959a8766dce12e20ff029fa84bf /pugl | |
parent | 37fe29ab9c4a5ea22bc5996b020fa39c854965fa (diff) | |
download | pugl-c74467ae07cc419b913998d96315d0f7ef5d2b21.tar.gz pugl-c74467ae07cc419b913998d96315d0f7ef5d2b21.tar.bz2 pugl-c74467ae07cc419b913998d96315d0f7ef5d2b21.zip |
Fix potential memory leak on error
Diffstat (limited to 'pugl')
-rw-r--r-- | pugl/detail/implementation.c | 1 |
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; } |