From c74467ae07cc419b913998d96315d0f7ef5d2b21 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 27 Jul 2019 21:44:39 +0200 Subject: Fix potential memory leak on error --- pugl/detail/implementation.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v1.2.1