Skip to content

Commit

Permalink
Fix a potential memory leak found with coverity. Fixes: CID#1197129
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
  • Loading branch information
philippedeswert committed Apr 6, 2014
1 parent fe7ac1c commit 90c11a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/usb_moded-network.c
Expand Up @@ -110,6 +110,7 @@ static int set_usb_ip_forward(struct mode_list_elem *data, struct ipforward_data
else
{
log_debug("No nat interface available!\n");
free((char *)interface);
return(1);
}
write_to_file("/proc/sys/net/ipv4/ip_forward", "1");
Expand Down

0 comments on commit 90c11a6

Please sign in to comment.