mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
util: set_program_name() can be called twice with different names.
Ex: ovstest.c Signed-off-by: Gurucharan Shetty <gshetty@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -461,7 +461,7 @@ set_program_name__(const char *argv0, const char *version, const char *date,
|
||||
SetErrorMode(GetErrorMode() | SEM_NOGPFAULTERRORBOX);
|
||||
|
||||
if (program_name) {
|
||||
return;
|
||||
free(program_name);
|
||||
}
|
||||
basename = xmalloc(max_len);
|
||||
_splitpath_s(argv0, NULL, 0, NULL, 0, basename, max_len, NULL, 0);
|
||||
|
Reference in New Issue
Block a user