From 0accb683c9a07989c5b945b6217184f13f0b42b5 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 9 Mar 2015 08:56:39 +0100 Subject: [PATCH] write_mongodb plugin: s/bson_dispose/bson_destroy/ Thanks to @eremenko for providing the initial patch! Fixes: #331, #956 --- src/write_mongodb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/write_mongodb.c b/src/write_mongodb.c index 30e261c9..a12bdd01 100644 --- a/src/write_mongodb.c +++ b/src/write_mongodb.c @@ -243,7 +243,7 @@ static int wm_write (const data_set_t *ds, /* {{{ */ pthread_mutex_unlock (&node->lock); /* free our resource as not to leak memory */ - bson_dispose (bson_record); + bson_destroy (bson_record); return (0); } /* }}} int wm_write */ -- 2.11.0