Fix memory leak when Stomp can not write it's message

v1.1
Pierrick Charron 2012-11-17 17:27:40 -05:00
parent 49ae478103
commit d83dfa7117
1 changed files with 1 additions and 0 deletions

View File

@ -259,6 +259,7 @@ int stomp_send(stomp_t *stomp, stomp_frame_t *frame TSRMLS_DC)
char error[1024];
snprintf(error, sizeof(error), "Unable to send data");
stomp_set_error(stomp, error, errno, NULL);
smart_str_free(&buf);
return 0;
}