Skip to content

Commit

Permalink
emergency: fix memory leak on error
Browse files Browse the repository at this point in the history
(cherry picked from commit 18f9f78)
  • Loading branch information
l2dy authored and liviuchircu committed Oct 8, 2020
1 parent 0ced3fa commit 7169460
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/emergency/post_curl.c
Expand Up @@ -120,5 +120,6 @@ int post(char* url, char* xml, char** response){
return resp;
}
curl_global_cleanup();
free(data.data);
return -1;
}

0 comments on commit 7169460

Please sign in to comment.