fix the memory leak
authorBang Kwang min <justine.bang@samsung.com>
Tue, 28 Aug 2012 06:17:36 +0000 (15:17 +0900)
committerBang Kwang min <justine.bang@samsung.com>
Thu, 30 Aug 2012 06:10:19 +0000 (15:10 +0900)
[Title] fix the memory leak
[Issue#] N/A
[Problem] it need to free after clear the structure
[Cause] N/A
[Solution] add free call
[SCMRequest] N/A

modified:   src/download-provider-receiver.c

Change-Id: I20d5cdf4cdfd01eabf278873da9fcdfa399076cc

src/download-provider-receiver.c

index 3f8005d..c331bc8 100644 (file)
@@ -304,6 +304,7 @@ int _handle_new_connection(download_clientinfo_slot *clientinfo_list, download_c
                                                }
                                        }
                                        download_provider_db_info_free(dbinfo);
+                                       free(dbinfo);
                                }
                                ipc_send_stateinfo(request_clientinfo);
                                // estabilish the spec of return value.