commit | 9b037a6a7a16bf580906e3197a54a366ac26060c | [log] [tgz] |
---|---|---|
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | Thu Jul 11 08:17:02 2013 +0200 |
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | Fri Aug 09 17:48:24 2013 +0200 |
tree | be08341de622d83c58e1fe6397348cbeb8d5b927 | |
parent | 73fa6427aa5df95728eab41ec1b24f04a0dcf51e [diff] |
lapd: Remove the double NULL check idiom with msgb_free if (ptr) msgb_free(ptr) extends to: if (ptr) talloc_free(ptr) And according to the talloc documentation a talloc_free(NULL) will not crash: "... Likewise, if "ptr" is NULL, then the function will make no modifications and returns -1."