Fix memory leak when Stomp can not write it's message
parent
49ae478103
commit
d83dfa7117
1
stomp.c
1
stomp.c
|
@ -259,6 +259,7 @@ int stomp_send(stomp_t *stomp, stomp_frame_t *frame TSRMLS_DC)
|
||||||
char error[1024];
|
char error[1024];
|
||||||
snprintf(error, sizeof(error), "Unable to send data");
|
snprintf(error, sizeof(error), "Unable to send data");
|
||||||
stomp_set_error(stomp, error, errno, NULL);
|
stomp_set_error(stomp, error, errno, NULL);
|
||||||
|
smart_str_free(&buf);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue