Commit 37eb85ba authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Don't derefrence NULL pointers

parent ec5eba3f
......@@ -91,7 +91,8 @@ VIN_n_Arg(const char *n_arg, char **name, char **dir)
if (dir != NULL) {
*dir = strdup(dn);
if (*dir == NULL) {
free(*name);
if (name != NULL)
free(*name);
return (-1);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment