This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The Open Source GSM Base Band stack".
The branch, master has been updated
via ae31c37d2b4033fb2335060e4f7942ad5ad9549a (commit)
from 903e2515f5d92b152804ae4afbe67499d0a90d61 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://cgit.osmocom.org/osmocom-bb/commit/?id=ae31c37d2b4033fb2335060e4f794…
commit ae31c37d2b4033fb2335060e4f7942ad5ad9549a
Author: Vadim Yanitskiy <axilirator(a)gmail.com>
Date: Sat Sep 9 00:24:04 2017 +0300
mobile/main.c: clean up config file selection logic
The 903e2515 introduced the following problems:
- The home variable is allocated dynamically by talloc,
but not being freed. There is no need for dynamical
memory allocation, as the getenv() returns a pointer
to a value in the environment or NULL.
- In case of custom configuration file, a pointer to
a part of stack (not heap) is passed to talloc_free().
This may cause unexpected behaviour of segfault.
Let's fix both of them.
Change-Id: I79cc3b954c3018b7e780f6351c3030c3062470b5
-----------------------------------------------------------------------
Summary of changes:
src/host/layer23/src/mobile/main.c | 24 +++++++++++++++---------
1 file changed, 15 insertions(+), 9 deletions(-)
hooks/post-receive
--
The Open Source GSM Base Band stack