summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7217dd3)
raw | patch | inline | side by side (parent: 7217dd3)
author | Florian Forster <octo@collectd.org> | |
Mon, 9 Mar 2015 07:56:39 +0000 (08:56 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Mon, 9 Mar 2015 07:56:39 +0000 (08:56 +0100) |
Thanks to @eremenko for providing the initial patch!
Fixes: #331, #956
Fixes: #331, #956
src/write_mongodb.c | patch | blob | history |
diff --git a/src/write_mongodb.c b/src/write_mongodb.c
index 30e261c9eee919e582f1d4da06ff52aced103a56..a12bdd01728569dbe33e1d1e2e349a5e633996b1 100644 (file)
--- a/src/write_mongodb.c
+++ b/src/write_mongodb.c
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 */