Author: pjd
Date: Fri Jan  3 09:10:04 2014
New Revision: 260223
URL: http://svnweb.freebsd.org/changeset/base/260223

Log:
  MFp4 @1189741:
  
  - Add missing nvlist_destroy().
  - Don't override nvlout.
  
  Submitted by: Mariusz Zaborski <osho...@freebsd.org>
  MFC after:    3 days

Modified:
  head/lib/libcasper/libcasper.c

Modified: head/lib/libcasper/libcasper.c
==============================================================================
--- head/lib/libcasper/libcasper.c      Fri Jan  3 09:07:03 2014        
(r260222)
+++ head/lib/libcasper/libcasper.c      Fri Jan  3 09:10:04 2014        
(r260223)
@@ -348,7 +348,6 @@ service_message(struct service *service,
                        error = 0;
                }
        } else {
-               nvlout = nvlist_create(0);
                error = service->s_command(cmd,
                    service_connection_get_limits(sconn), nvlin, nvlout);
        }
@@ -362,8 +361,9 @@ service_message(struct service *service,
        if (cap_send_nvlist(service_connection_get_chan(sconn), nvlout) == -1) {
                pjdlog_errno(LOG_ERR, "Unable to send message to client");
                service_connection_remove(service, sconn);
-               return;
        }
+
+       nvlist_destroy(nvlout);
 }
 
 static int
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to