diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2017-06-10 17:35:47 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2017-06-10 17:35:47 +0200 |
commit | 3dc72b2e5f0755de5da5c157e465882e14ed9a29 (patch) | |
tree | b8449ae1f263e7b1a6b9285a808066bc43c8f706 /src | |
parent | 46f409d4635edfd305d2665766ba2657cdea843a (diff) | |
download | weechat-3dc72b2e5f0755de5da5c157e465882e14ed9a29.zip |
core: free use of pointer after free in case of error in function string_dyn_concat
Diffstat (limited to 'src')
-rw-r--r-- | src/core/wee-string.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/core/wee-string.c b/src/core/wee-string.c index f974ac063..b6765d9b7 100644 --- a/src/core/wee-string.c +++ b/src/core/wee-string.c @@ -3428,7 +3428,6 @@ string_dyn_concat (char **string, const char *add) { free (ptr_string_dyn->string); free (ptr_string_dyn); - *string = NULL; return 0; } ptr_string_dyn->string = string_realloc; |