Commit 8863c92d authored by Daniel Salzman's avatar Daniel Salzman

process: fix possible resource leak (coverity)

parent 4c92406d
......@@ -48,11 +48,7 @@ char* pid_filename()
free(rundir);
rcu_read_unlock();
if (rundir != NULL) {
return pidfile;
} else {
return NULL;
}
return pidfile;
}
pid_t pid_read(const char* fn)
......
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