From d83dfa711719be391d917c4469a658b6189adb7a Mon Sep 17 00:00:00 2001 From: Pierrick Charron Date: Sat, 17 Nov 2012 17:27:40 -0500 Subject: [PATCH] Fix memory leak when Stomp can not write it's message --- stomp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/stomp.c b/stomp.c index a8d6a32..fba3466 100644 --- a/stomp.c +++ b/stomp.c @@ -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; }