diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-05-31 09:16:00 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-05-31 11:15:55 +0200 |
commit | 9d8a274e00cf01d2a2ea137f5dbd6f5edb37c15b (patch) | |
tree | 24f5ee862a5d1778f9b90d3194caafa0b17b3aa3 | |
parent | f1e305fca2b4ca79cfed6d406ceb37f3dfb59f70 (diff) |
libnetfs: fix memory leak
* libnetfs/trans-callback.c (_netfs_translator_callback2_fn): Free
user if creating the protid failed.
-rw-r--r-- | libnetfs/trans-callback.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libnetfs/trans-callback.c b/libnetfs/trans-callback.c index 4dec162e..f4f0c62b 100644 --- a/libnetfs/trans-callback.c +++ b/libnetfs/trans-callback.c @@ -74,7 +74,10 @@ _netfs_translator_callback2_fn (void *cookie1, void *cookie2, int flags, return 0; } else - return errno; + { + iohelp_free_iouser (user); + return errno; + } } fshelp_fetch_root_callback1_t _netfs_translator_callback1 = |