Skip to content

Commit

Permalink
core/mule: fix a memory leak in uwsgi_setup_mules_and_farms
Browse files Browse the repository at this point in the history
Reported by Coverity as CID #971028.
  • Loading branch information
xrmx committed Mar 9, 2013
1 parent 8cd298d commit 1f4099c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/mule.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ void uwsgi_setup_mules_and_farms() {
mules_list++;

strncpy(uwsgi.farms[i].name, farm_value, 0xff);
free(farm_value);

// create the socket pipe
create_signal_pipe(uwsgi.farms[i].signal_pipe);
Expand Down

0 comments on commit 1f4099c

Please sign in to comment.