example:helloworld.c: Fix bug: May be reference a NULL pointer.
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>main
parent
69d7e91fb6
commit
90fad37a4c
|
@ -101,7 +101,9 @@ int main(int argc, char **argv)
|
||||||
uloop_run();
|
uloop_run();
|
||||||
done:
|
done:
|
||||||
uloop_done();
|
uloop_done();
|
||||||
srv->free(srv);
|
|
||||||
|
if (srv)
|
||||||
|
srv->free(srv);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue