commit 1960a6f9da8b811e074a153918a02e69c8a8d885 from: Stefan Sperling date: Thu Jul 12 21:56:25 2018 UTC don't leak objects in tog blame view commit - 7a2921f9f5de672cb5107b005351dd15771c41c5 commit + 1960a6f9da8b811e074a153918a02e69c8a8d885 blob - 00d46717dff455d72bdbbf3ecec6959326765fdd blob + e5ddd90a8ddb1e384021dc703771a81631057789 --- tog/tog.c +++ tog/tog.c @@ -1595,6 +1595,12 @@ show_blame_view(const char *path, struct got_object_id if (thread_err) break; id = got_object_get_id(ch == 'b' ? obj : pobj); + got_object_close(obj); + obj = NULL; + if (pobj) { + got_object_close(pobj); + obj = NULL; + } if (id == NULL) { err = got_error_from_errno(); break;