aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}