Remove return that ended up with a memory leak in cs.c
authorRonald G. Minnich <rminnich@gmail.com>
Tue, 23 Sep 2014 20:19:41 +0000 (20:19 +0000)
committerRonald G. Minnich <rminnich@gmail.com>
Tue, 23 Sep 2014 20:19:41 +0000 (20:19 +0000)
I was hoping we'd have replaced it by now ...

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
tests/cs.c

index db7135b..9bd58ae 100644 (file)
@@ -398,7 +398,6 @@ newjob(void)
        if (! job){
                error(1, 0, "%s: %r","job calloc");
        }
-#warning "fix lock"
 //     //lock(&joblock);
        job->next = joblist;
        joblist = job;
@@ -411,7 +410,6 @@ void
 freejob(Job *job)
 {
        Job **l;
-return;
        //lock(&joblock);
        for(l = &joblist; *l; l = &(*l)->next){
                if((*l) == job){