Missing free() on return path (thanks: Steve Grubb).

This commit is contained in:
Richard Jones
2009-04-16 17:38:27 +01:00
parent 3ae8631c8f
commit 1e60354dc8
2 changed files with 4 additions and 0 deletions

View File

@@ -2011,6 +2011,7 @@ parse_command_line_pvs (void)
reply_with_error ("%s", err);
free (out);
free (err);
free (ret);
return NULL;
}
@@ -2350,6 +2351,7 @@ parse_command_line_vgs (void)
reply_with_error ("%s", err);
free (out);
free (err);
free (ret);
return NULL;
}
@@ -2659,6 +2661,7 @@ parse_command_line_lvs (void)
reply_with_error ("%s", err);
free (out);
free (err);
free (ret);
return NULL;
}

View File

@@ -2394,6 +2394,7 @@ and generate_daemon_actions () =
pr " reply_with_error (\"%%s\", err);\n";
pr " free (out);\n";
pr " free (err);\n";
pr " free (ret);\n";
pr " return NULL;\n";
pr " }\n";
pr "\n";