Skip to content

Commit f2a4f23

Browse files
authored
Merge pull request #710 from kjlaw89/memleakFix
Fixes msg memory leak
2 parents 7f1a706 + b1d86a4 commit f2a4f23

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/dyn_message.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,11 @@ void msg_put(struct msg *msg) {
632632
msg->keys = NULL;
633633
}
634634

635+
if (msg->args) {
636+
array_destroy(msg->args);
637+
msg->args = NULL;
638+
}
639+
635640
if (msg->orig_msg) {
636641
msg_put(msg->orig_msg);
637642
msg->orig_msg = NULL;

0 commit comments

Comments
 (0)