Permalink
Browse files

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

  • Loading branch information...
1 parent 49ae478 commit d83dfa711719be391d917c4469a658b6189adb7a @adoy adoy committed Nov 17, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 stomp.c
View
1 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;
}

0 comments on commit d83dfa7

Please sign in to comment.