Permalink
Browse files

fix #117: gmetric does not return error on send error

  • Loading branch information...
1 parent 1d4bf53 commit 40da62ed56899b5aaab69a04ff89940cb62e7636 @jbuchbinder jbuchbinder committed Jul 18, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 gmetric/gmetric.c
View
@@ -127,6 +127,9 @@ main( int argc, char *argv[] )
if(rval)
{
fprintf(stderr,"There was an error sending to %d of the send channels.\n", rval);
+ Ganglia_metric_destroy(gmetric);
+ Ganglia_pool_destroy(global_context);
+ exit(1);
}
/* cleanup */

0 comments on commit 40da62e

Please sign in to comment.