Skip to content

Commit 80925c2

Browse files
committed
CDRIVER-2177 memleak on compression failure
1 parent 3a099a3 commit 80925c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mongoc/mongoc-rpc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,7 @@ _mongoc_rpc_compress (struct _mongoc_cluster_t *cluster,
700700
mongoc_compressor_id_to_name (compressor_id));
701701
}
702702
bson_free (data);
703+
bson_free (output);
703704
return NULL;
704705
}
705706
bool

0 commit comments

Comments
 (0)