Permalink
Browse files

fixed bug in sml_message_body_free

  • Loading branch information...
1 parent 1dbf263 commit dd813cd5b5a142240f93ab5e24759806ab2e05ec Juri Glass committed Oct 14, 2011
Showing with 1 addition and 3 deletions.
  1. +1 −3 sml/src/sml_message.c
View
@@ -242,8 +242,6 @@ void sml_message_body_write(sml_message_body *message_body, sml_buffer *buf) {
void sml_message_body_free(sml_message_body *message_body) {
if (message_body) {
- sml_number_free(message_body->tag);
-
switch (*(message_body->tag)) {
case SML_MESSAGE_OPEN_REQUEST:
sml_open_request_free((sml_open_request *) message_body->data);
@@ -291,7 +289,7 @@ void sml_message_body_free(sml_message_body *message_body) {
printf("NYI: %s for message type %04X\n", __FUNCTION__, *(message_body->tag));
break;
}
-
+ sml_number_free(message_body->tag);
free(message_body);
}
}

2 comments on commit dd813cd

Contributor

stv0g replied Oct 18, 2011

Thanks :-) I've lost my commit to fix this somewhere ;)

Contributor

juriglx replied Oct 19, 2011

The ticket was still open and somehow it wasn't fixed. ;)

Please sign in to comment.