Skip to content
Permalink
Browse files
Fix a potential memory leak found with coverity. Fixes: CID#1197129
Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
  • Loading branch information
philippedeswert committed Apr 6, 2014
1 parent fe7ac1c commit 90c11a6e4f315cdd9e30a188df9d27540970cd55
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/usb_moded-network.c
@@ -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");

0 comments on commit 90c11a6

Please sign in to comment.