فهرست منبع

Bug 616500 - fix coverify Defect Type: Resource leaks issues CID 12094 - 12136

https://bugzilla.redhat.com/show_bug.cgi?id=616500
Resolves: bug 616500
Bug description: fix coverify Defect Type: Resource leaks issues CID 12132
description: Fixed resource leaks in output_alert().
Endi S. Dewata 15 سال پیش
والد
کامیت
d0a1f482ad
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      lib/libadmin/error.c

+ 2 - 0
lib/libadmin/error.c

@@ -132,6 +132,8 @@ NSAPI_PUBLIC void output_alert(int type, char *info, char *details, int wait)
                         "which is %s.", err, verbose_error());
     }
     fprintf(stdout, "\");");
+
+    FREE(wrapped);
 }
 
 NSAPI_PUBLIC void report_error(int type, char *info, char *details)