Messages in this thread | | | From | Andi Kleen <> | Subject | Re: [RFC PATCH 0/4] kstrdup optimization | Date | Mon, 29 Dec 2014 22:45:42 -0800 |
| |
Andrzej Hajda <a.hajda@samsung.com> writes:
> kstrdup if often used to duplicate strings where neither source neither > destination will be ever modified. In such case we can just reuse the source > instead of duplicating it. The problem is that we must be sure that > the source is non-modifiable and its life-time is long enough.
What happens if someone is to kfree() these strings?
-Andi
-- ak@linux.intel.com -- Speaking for myself only
| |