Skip to content

Commit

Permalink
Memory leak fix for mongodb module-reply not freed
Browse files Browse the repository at this point in the history
(cherry picked from commit 4e0d8ff)
  • Loading branch information
Alessio Garzi authored and liviuchircu committed Nov 26, 2019
1 parent 1d7ffe4 commit d800370
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/cachedb_mongodb/cachedb_mongodb_dbase.c
Expand Up @@ -1008,6 +1008,7 @@ int mongo_con_add(cachedb_con *con, str *attr, int val, int expires, int *new_va
}

out:
bson_destroy(&reply);
bson_destroy(cmd);
return ret;
}
Expand Down

0 comments on commit d800370

Please sign in to comment.