job: update job_free() to follow our usual return-NULL style
This commit is contained in:
+2
-2
@@ -89,7 +89,7 @@ void job_unlink(Job *j) {
|
||||
j->timer_event_source = sd_event_source_unref(j->timer_event_source);
|
||||
}
|
||||
|
||||
void job_free(Job *j) {
|
||||
Job* job_free(Job *j) {
|
||||
assert(j);
|
||||
assert(!j->installed);
|
||||
assert(!j->transaction_prev);
|
||||
@@ -102,7 +102,7 @@ void job_free(Job *j) {
|
||||
sd_bus_track_unref(j->bus_track);
|
||||
strv_free(j->deserialized_clients);
|
||||
|
||||
free(j);
|
||||
return mfree(j);
|
||||
}
|
||||
|
||||
static void job_set_state(Job *j, JobState state) {
|
||||
|
||||
+1
-1
@@ -162,7 +162,7 @@ struct Job {
|
||||
Job* job_new(Unit *unit, JobType type);
|
||||
Job* job_new_raw(Unit *unit);
|
||||
void job_unlink(Job *job);
|
||||
void job_free(Job *job);
|
||||
Job* job_free(Job *job);
|
||||
Job* job_install(Job *j);
|
||||
int job_install_deserialized(Job *j);
|
||||
void job_uninstall(Job *j);
|
||||
|
||||
Reference in New Issue
Block a user