dict: fix memory leak in OOM exit path
Bug: https://github.com/bagder/curl/pull/90
This commit is contained in:
committed by
Daniel Stenberg
parent
d3d871cb4f
commit
1813a77b02
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@@ -122,9 +122,8 @@ static char *unescape_word(struct SessionHandle *data, const char *inputbuff)
|
|||||||
dictp[olen++] = byte;
|
dictp[olen++] = byte;
|
||||||
}
|
}
|
||||||
dictp[olen]=0;
|
dictp[olen]=0;
|
||||||
|
|
||||||
free(newp);
|
|
||||||
}
|
}
|
||||||
|
free(newp);
|
||||||
return dictp;
|
return dictp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user