Browse Source

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 years ago
parent
commit
d0a1f482ad
1 changed files with 2 additions and 0 deletions
  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)