Skip to content

Instantly share code, notes, and snippets.

View kamulos's full-sized avatar
🌴
On vacation

kamulos

🌴
On vacation
View GitHub Profile
@kamulos
kamulos / main.c
Created June 25, 2021 14:35
Memory leak in mongoc_database_command_simple when passing in a reply object created by bson_new
#include <mongoc.h>
#include <bson.h>
void execute_ping(mongoc_client_t *client)
{
bson_error_t error;
bson_t *reply = bson_new();
mongoc_database_t *database = mongoc_client_get_database(client, "admin");
bson_t *command = BCON_NEW("ping", BCON_INT32(1));
@kamulos
kamulos / sway.log
Created August 15, 2019 10:48
Sway in VirtualBox Wrong Mouse Pointer Position Debug Log
2019-08-15 12:43:48 - [sway-1.1.1/sway/main.c:151] Linux arch-hak 5.1.21-1-MANJARO #1 SMP PREEMPT Sun Jul 28 09:33:43 UTC 2019 x86_64 GNU/Linux
2019-08-15 12:43:48 - [sway-1.1.1/sway/main.c:167] Contents of /etc/lsb-release:
2019-08-15 12:43:48 - [sway-1.1.1/sway/main.c:151] DISTRIB_ID=ManjaroLinux
2019-08-15 12:43:48 - [sway-1.1.1/sway/main.c:151] DISTRIB_RELEASE=18.0.4
2019-08-15 12:43:48 - [sway-1.1.1/sway/main.c:151] DISTRIB_CODENAME=Illyria
2019-08-15 12:43:48 - [sway-1.1.1/sway/main.c:151] DISTRIB_DESCRIPTION="Manjaro Linux"
2019-08-15 12:43:48 - [sway-1.1.1/sway/main.c:167] Contents of /etc/os-release:
2019-08-15 12:43:48 - [sway-1.1.1/sway/main.c:151] NAME="Manjaro Linux"
2019-08-15 12:43:48 - [sway-1.1.1/sway/main.c:151] ID=manjaro
2019-08-15 12:43:48 - [sway-1.1.1/sway/main.c:151] ID_LIKE=arch