FS-3334 --resolve libdingaling this was a small leak

This commit is contained in:
Jeff Lenk 2011-06-09 09:52:11 -05:00
parent e2ed8c08ef
commit d3ea42d82a
1 changed files with 5 additions and 1 deletions

View File

@ -1908,6 +1908,8 @@ void ldl_handle_send_msg(ldl_handle_t *handle, char *from, char *to, const char
int on = 0;
int len = 0;
char *my_body = strdup(body);
char *my_body_base = my_body;
assert(handle != NULL);
assert(body != NULL);
@ -1952,7 +1954,9 @@ void ldl_handle_send_msg(ldl_handle_t *handle, char *from, char *to, const char
free(bdup);
}
free(my_body);
if (my_body_base) {
free(my_body_base);
}
apr_queue_push(handle->queue, msg);
msg = NULL;